N°870 - Avoid Obsolete data export in CSV, Excel and PDF

SVN:trunk[5218]
This commit is contained in:
Eric Espié
2018-01-09 15:51:03 +00:00
parent 449316257a
commit 42dc73964c
2 changed files with 13 additions and 1 deletions

View File

@@ -2157,6 +2157,7 @@ EOF
if ($sExpression === null)
{
$oQuerySearch = DBObjectSearch::FromOQL('SELECT QueryOQL WHERE id = :query_id', array('query_id' => $iQueryId));
$oQuerySearch->UpdateContextFromUser();
$oQueries = new DBObjectSet($oQuerySearch);
if ($oQueries->Count() > 0)
{
@@ -2171,6 +2172,7 @@ EOF
if($sExpression !== null)
{
$oSearch = DBObjectSearch::FromOQL($sExpression);
$oSearch->UpdateContextFromUser();
$oExporter = BulkExport::FindExporter($sFormat, $oSearch);
$oExporter->SetObjectList($oSearch);
$oExporter->SetFormat($sFormat);