diff --git a/application/forms.class.inc.php b/application/forms.class.inc.php index f35216215..fa2d2c879 100644 --- a/application/forms.class.inc.php +++ b/application/forms.class.inc.php @@ -108,7 +108,7 @@ class DesignerForm $aRow = $oField->Render($oP, $sFormId); if ($oField->IsVisible()) { - $sValidation = ' '.$this->GetValidationArea($oField->GetCode()).''; + $sValidation = ' '.$this->GetValidationArea($oField->GetFieldId()).''; $sField = $aRow['value'].$sValidation; $aDetails[] = array('label' => $aRow['label'], 'value' => $sField); } @@ -234,7 +234,7 @@ class DesignerForm if ($oField->IsVisible()) { $sFieldId = $this->GetFieldId($oField->GetCode()); - $sValidation = $this->GetValidationArea($oField->GetCode(), ''); + $sValidation = $this->GetValidationArea($sFieldId, ''); $sValidationFields = ''.$sValidation.''.$this->EndRow(); $sPath = $this->GetHierarchyPath().'/'.$oField->GetCode(); @@ -517,9 +517,9 @@ EOF return 'attr_'.$sCode.$this->GetSuffix(); } - public function GetValidationArea($sCode, $sContent = '') + public function GetValidationArea($sId, $sContent = '') { - return "sFormPrefix}attr_$sCode\">$sContent"; + return "$sContent"; } public function GetAsyncActionClass() {