mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-20 17:18:51 +02:00
"Search Drawer" is closed by default, unless the configuration parameter "legacy_search_drawer" is set to "true".
SVN:trunk[4232]
This commit is contained in:
@@ -1773,7 +1773,21 @@ EOF;
|
||||
case 'OQLMenuNode':
|
||||
$sOQL = self::QuoteForPHP($oMenu->GetChildText('oql'));
|
||||
$bSearch = ($oMenu->GetChildText('do_search') == '1') ? 'true' : 'false';
|
||||
$sSearchFormOpen = ($oMenu->GetChildText('search_form_open') == '1') ? 'true' : 'false';
|
||||
$sSearchFormOpenXML = $oMenu->GetChildText('search_form_open');
|
||||
switch($sSearchFormOpenXML)
|
||||
{
|
||||
case '1':
|
||||
$sSearchFormOpen = 'true';
|
||||
break;
|
||||
|
||||
case '0':
|
||||
$sSearchFormOpen = 'false';
|
||||
break;
|
||||
|
||||
default:
|
||||
$sSearchFormOpen = 'null'; // Actual open/close status depend on the config
|
||||
}
|
||||
$sSearchFormOpen = ($oMenu->GetChildText('search_form_open') == '') ? 'null' : 'false';
|
||||
$sNewMenu = "new OQLMenuNode('$sMenuId', $sOQL, $sParentSpec, $fRank, $bSearch, $sSearchFormOpen);";
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user