mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 02:58:43 +02:00
Added support of hierarchy in the manipulation of external keys:
- widget SVN:trunk[1352]
This commit is contained in:
@@ -251,6 +251,27 @@ try
|
||||
echo json_encode(array('name' => $sName));
|
||||
break;
|
||||
|
||||
// ui.extkeywidget
|
||||
case 'displayHierarchy':
|
||||
$sTargetClass = utils::ReadParam('sTargetClass', '');
|
||||
$sInputId = utils::ReadParam('sInputId', '');
|
||||
$sFilter = utils::ReadParam('sFilter');
|
||||
$sJson = utils::ReadParam('json', '');
|
||||
$currValue = utils::ReadParam('value', '');
|
||||
if (!empty($sJson))
|
||||
{
|
||||
$oWizardHelper = WizardHelper::FromJSON($sJson);
|
||||
$oObj = $oWizardHelper->GetTargetObject();
|
||||
}
|
||||
else
|
||||
{
|
||||
// Search form: no current object
|
||||
$oObj = null;
|
||||
}
|
||||
$oWidget = new UIExtKeyWidget($sTargetClass, $sInputId);
|
||||
$oWidget->DisplayHierarchy($oPage, $sFilter, $currValue);
|
||||
break;
|
||||
|
||||
////////////////////////////////////////////////////
|
||||
|
||||
// ui.linkswidget
|
||||
|
||||
Reference in New Issue
Block a user