diff --git a/application/dashlet.class.inc.php b/application/dashlet.class.inc.php index 0464d58c7..d49229432 100644 --- a/application/dashlet.class.inc.php +++ b/application/dashlet.class.inc.php @@ -283,7 +283,9 @@ EOF public function GetForm() { $oForm = new DesignerForm(); - $oForm->SetPrefix("dashlet_". $this->GetID()); + $sPrefix = "dashlet_".$this->GetID(); + $oForm->SetPrefix($sPrefix); + $oForm->SetHierarchyPath($sPrefix); $oForm->SetParamsContainer('params'); $this->GetPropertiesFields($oForm); diff --git a/application/forms.class.inc.php b/application/forms.class.inc.php index b0069e0be..6b1240b2d 100644 --- a/application/forms.class.inc.php +++ b/application/forms.class.inc.php @@ -203,7 +203,7 @@ class DesignerForm public function RenderAsPropertySheet($oP, $bReturnHTML = false, $sNotifyParentSelector = null) { - $sReturn = ''; + $sReturn = ''; $sActionUrl = addslashes($this->sSubmitTo); $sJSSubmitParams = json_encode($this->aSubmitParams); $sFormId = $this->GetFormId(); @@ -1525,7 +1525,6 @@ class DesignerFormSelectorField extends DesignerFormField public function AddSubForm($oSubForm, $sLabel, $sValue) { - $idx = count($this->aSubForms); $this->aSubForms[] = array('form' => $oSubForm, 'label' => $sLabel, 'value' => $sValue); if ($sValue == $this->defaultRealValue) { @@ -1539,7 +1538,7 @@ class DesignerFormSelectorField extends DesignerFormField $sId = $this->oForm->GetFieldId($this->sCode); $sName = $this->oForm->GetFieldName($this->sCode); $sReadOnly = $this->IsReadOnly() ? 'disabled="disabled"' : ''; - + $this->aCSSClasses[] = 'formSelector'; $sCSSClasses = ''; @@ -1555,8 +1554,6 @@ class DesignerFormSelectorField extends DesignerFormField if ($this->IsReadOnly()) { - $aSelected = array(); - $aHiddenValues = array(); $sDisplayValue = ''; $sHiddenValue = ''; foreach($this->aSubForms as $iKey => $aFormData) @@ -1572,8 +1569,6 @@ class DesignerFormSelectorField extends DesignerFormField } else { - - $sHtml = "