Advanced Search: debug mode

SVN:b1162[5588]
This commit is contained in:
Eric Espié
2018-03-30 12:31:13 +00:00
parent 95b523c2fa
commit b447418f07
2 changed files with 15 additions and 3 deletions

View File

@@ -63,6 +63,14 @@ try
$sHiddenCriteria = '';
}
$oFilter = CriterionParser::Parse($aParams['base_oql'], $aParams['criterion'], $sHiddenCriteria);
if (isset($aListParams['debug']))
{
$sOQL = $oFilter->ToOQL();
$oPage->add("<div class=\"header_message message_info\">$sOQL</div>\n");
}
//IssueLog::Info('Search OQL: "'.$oFilter->ToOQL().'"');
$oDisplayBlock = new DisplayBlock($oFilter, 'list', false);
foreach($aListParams as $key => $value)
@@ -90,15 +98,12 @@ try
$aExtraParams['query_params'] = array('this' => $oObj);
}
// // Current extkey value, so we can display event if it is not available anymore (eg. archived).
// $iCurrentExtKeyId = (is_null($oObj)) ? 0 : $oObj->Get($this->sAttCode);
// $aExtraParams['current_extkey_id'] = $iCurrentExtKeyId;
}
$aExtraParams['display_limit'] = true;
$aExtraParams['truncated'] = true;
if (isset($sListId))
@@ -110,6 +115,7 @@ try
$oDisplayBlock->RenderContent($oPage, $aExtraParams);
}
$oPage->output();
} catch (AjaxSearchException $e)