From c45dbb2e07f894a5ee55c313a4d25edf8a44b711 Mon Sep 17 00:00:00 2001 From: Romain Quetiez Date: Wed, 17 Oct 2012 12:03:29 +0000 Subject: [PATCH] Portal: enable adding dependent attributes in the request creation form SVN:trunk[2270] --- 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 e89585558..462cb0cc2 100644 --- a/application/portalwebpage.class.inc.php +++ b/application/portalwebpage.class.inc.php @@ -218,8 +218,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 f03c5a9f3..b27544472 100644 --- a/portal/index.php +++ b/portal/index.php @@ -250,8 +250,9 @@ EOF } $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); } $aDetails[] = array('label' => Dict::S('Class:Ticket/Attribute:ticket_log'), 'value' => '');