mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Portal: enable adding dependent attributes in the request creation form -reintegrated from trunk
SVN:1.2[2271]
This commit is contained in:
@@ -212,8 +212,10 @@ EOF
|
||||
}
|
||||
EOF
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
// For Wizard helper to process the ajax replies
|
||||
$this->add('<div id="ajax_content"></div>');
|
||||
}
|
||||
|
||||
public function SetCurrentTab($sTabLabel = '')
|
||||
{
|
||||
|
||||
@@ -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 = "<span id=\"field_{$sInputId}\">".$oRequest->GetFormElementForField($oP, get_class($oRequest), $sAttCode, $oAttDef, $value, '', 'attr_'.$sAttCode, '', $iFlags, $aArgs).'</span>';
|
||||
$aDetails[] = array('label' => '<span>'.$oAttDef->GetLabel().'</span>', 'value' => $sValue);
|
||||
}
|
||||
if (!class_exists('AttachmentPlugIn'))
|
||||
|
||||
Reference in New Issue
Block a user