From e54b1d2ff43493593c84424ec71f2b1197e9a862 Mon Sep 17 00:00:00 2001 From: Romain Quetiez Date: Wed, 17 Oct 2012 12:17:28 +0000 Subject: [PATCH] Portal: enable adding dependent attributes in the request creation form -reintegrated from trunk SVN:1.2[2271] --- application/portalwebpage.class.inc.php | 6 ++++-- portal/index.php | 5 +++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/application/portalwebpage.class.inc.php b/application/portalwebpage.class.inc.php index a005d03e3..69e13cd13 100644 --- a/application/portalwebpage.class.inc.php +++ b/application/portalwebpage.class.inc.php @@ -212,8 +212,10 @@ EOF } EOF ); - - } + + // For Wizard helper to process the ajax replies + $this->add('
'); +} public function SetCurrentTab($sTabLabel = '') { diff --git a/portal/index.php b/portal/index.php index 796003911..e564dcd7c 100644 --- a/portal/index.php +++ b/portal/index.php @@ -245,8 +245,9 @@ function RequestCreationForm($oP, $oUserOrg) } $aArgs = array('this' => $oRequest); - $aFieldsMap[$sAttCode] = 'attr_'.$sAttCode; - $sValue = $oRequest->GetFormElementForField($oP, get_class($oRequest), $sAttCode, $oAttDef, $value, '', 'attr_'.$sAttCode, '', $iFlags, $aArgs); + $sInputId = 'attr_'.$sAttCode; + $aFieldsMap[$sAttCode] = $sInputId; + $sValue = "".$oRequest->GetFormElementForField($oP, get_class($oRequest), $sAttCode, $oAttDef, $value, '', 'attr_'.$sAttCode, '', $iFlags, $aArgs).''; $aDetails[] = array('label' => ''.$oAttDef->GetLabel().'', 'value' => $sValue); } if (!class_exists('AttachmentPlugIn'))