From ab72f53b958ddda717f4af1cde3b9d28cac3bdbf Mon Sep 17 00:00:00 2001 From: jbostoen <6421683+jbostoen@users.noreply.github.com> Date: Tue, 20 Jun 2023 17:09:51 +0200 Subject: [PATCH] Fix: when editing text, the original Wiki syntax should be visible - using the class and not the class label. --- core/attributedef.class.inc.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/attributedef.class.inc.php b/core/attributedef.class.inc.php index 98c88caaf0..ad4404314e 100644 --- a/core/attributedef.class.inc.php +++ b/core/attributedef.class.inc.php @@ -4518,8 +4518,7 @@ public function GetEditValue($sValue, $oHostObj = null) $sLabel = (!empty($aMatches[4])) ? trim($aMatches[4]) : null; if (MetaModel::IsValidClass($sClass)) { - $sClassLabel = MetaModel::GetName($sClass); - $sReplacement = "[[$sClassLabel:$sName".(!empty($sLabel) ? " | $sLabel" : "")."]]"; + $sReplacement = "[[$sClass:$sName".(!empty($sLabel) ? " | $sLabel" : "")."]]"; $sValue = str_replace($aMatches[0], $sReplacement, $sValue); } }