From c8a20d01da71fc824cdd0005943c77c210eb6750 Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Fri, 28 Nov 2014 14:03:21 +0000 Subject: [PATCH] Bug fix: proper handling of the validation of subforms... SVN:trunk[3435] --- application/forms.class.inc.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/application/forms.class.inc.php b/application/forms.class.inc.php index f352162157..fa2d2c8793 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() {