mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
- Search forms now display the subclasses of the specified class...
SVN:trunk[389]
This commit is contained in:
@@ -287,6 +287,16 @@ switch($operation)
|
||||
DownloadDocument($oPage, $oContext, $sClass, $id, $sField, 'attachement');
|
||||
}
|
||||
break;
|
||||
|
||||
case 'search_form':
|
||||
$sClass = utils::ReadParam('className', '', 'get');
|
||||
$sRootClass = utils::ReadParam('baseClass', '', 'get');
|
||||
$currentId = utils::ReadParam('currentId', '', 'get');
|
||||
$oFilter = $oContext->NewFilter($sClass);
|
||||
$oSet = new CMDBObjectSet($oFilter);
|
||||
$sHtml = cmdbAbstractObject::GetSearchForm($oPage, $oSet, array('currentId' => $currentId, 'baseClass' => $sRootClass));
|
||||
$oPage->add($sHtml);
|
||||
break;
|
||||
|
||||
default:
|
||||
$oPage->p("Invalid query.");
|
||||
|
||||
Reference in New Issue
Block a user