mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°4007 - When a search is on auto submit, auto submit it also on first display - new fix in order to avoid reload in case of OQLMenuNode - rollback some deleted lines
This commit is contained in:
@@ -1125,7 +1125,6 @@ class OQLMenuNode extends MenuNode
|
|||||||
{
|
{
|
||||||
$sUsageId = utils::GetSafeId($sUsageId);
|
$sUsageId = utils::GetSafeId($sUsageId);
|
||||||
$oSearch = DBObjectSearch::FromOQL($sOql);
|
$oSearch = DBObjectSearch::FromOQL($sOql);
|
||||||
//$sIcon = MetaModel::GetClassIcon($oSearch->GetClass(), false);
|
|
||||||
|
|
||||||
if ($bSearchPane) {
|
if ($bSearchPane) {
|
||||||
$aParams = array_merge(['open' => $bSearchOpen, 'table_id' => $sUsageId, 'submit_on_load' => true], $aExtraParams);
|
$aParams = array_merge(['open' => $bSearchOpen, 'table_id' => $sUsageId, 'submit_on_load' => true], $aExtraParams);
|
||||||
@@ -1133,6 +1132,16 @@ class OQLMenuNode extends MenuNode
|
|||||||
$oBlock->Display($oPage, 0);
|
$oBlock->Display($oPage, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$oPage->add("<div class='sf_results_area' data-target='search_results'>");
|
||||||
|
$oTitle = TitleUIBlockFactory::MakeForPage($sTitle);
|
||||||
|
$oPage->AddUiBlock($oTitle);
|
||||||
|
|
||||||
|
$aParams = array_merge(array('table_id' => $sUsageId), $aExtraParams);
|
||||||
|
$oBlock = new DisplayBlock($oSearch, 'list', false /* Asynchronous */, $aParams);
|
||||||
|
$oBlock->Display($oPage, $sUsageId);
|
||||||
|
|
||||||
|
$oPage->add("</div>");
|
||||||
|
|
||||||
if ($bEnableBreadcrumb && ($oPage instanceof iTopWebPage)) {
|
if ($bEnableBreadcrumb && ($oPage instanceof iTopWebPage)) {
|
||||||
// Breadcrumb
|
// Breadcrumb
|
||||||
//$iCount = $oBlock->GetDisplayedCount();
|
//$iCount = $oBlock->GetDisplayedCount();
|
||||||
|
|||||||
Reference in New Issue
Block a user