mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 18:48:51 +02:00
N°4454 - Measuring the use of the queryphrase book
This commit is contained in:
@@ -452,6 +452,7 @@ EOF
|
||||
function CheckParameters($sExpression, $sQueryId, $sFormat)
|
||||
{
|
||||
$oExporter = null;
|
||||
$oQuery = null;
|
||||
|
||||
if (utils::IsArchiveMode() && !UserRights::CanBrowseArchive()) {
|
||||
ReportErrorAndExit("The user account is not authorized to access the archives");
|
||||
@@ -516,6 +517,11 @@ function CheckParameters($sExpression, $sQueryId, $sFormat)
|
||||
ReportErrorAndExit(utils::HtmlEntities($e->getMessage()));
|
||||
}
|
||||
|
||||
// update last export information if check parameters ok
|
||||
if($oQuery != null){
|
||||
$oQuery->UpdateLastExportInformation();
|
||||
}
|
||||
|
||||
$oExporter->SetFormat($sFormat);
|
||||
$oExporter->SetChunkSize(EXPORTER_DEFAULT_CHUNK_SIZE);
|
||||
$oExporter->SetObjectList($oSearch);
|
||||
|
||||
Reference in New Issue
Block a user