mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 15:22:17 +02:00
Bulk export: don't forget to cleanup in case of error.
SVN:trunk[3612]
This commit is contained in:
@@ -490,6 +490,7 @@ function DoExport(Page $oP, BulkExport $oExporter, $bInteractive = false)
|
|||||||
|
|
||||||
if ($aStatus['code'] == 'error')
|
if ($aStatus['code'] == 'error')
|
||||||
{
|
{
|
||||||
|
$oExporter->Cleanup();
|
||||||
ReportErrorAndExit("Export failed: '{$aStatus['message']}'");
|
ReportErrorAndExit("Export failed: '{$aStatus['message']}'");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -501,6 +502,7 @@ function DoExport(Page $oP, BulkExport $oExporter, $bInteractive = false)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// Command Line mode
|
// Command Line mode
|
||||||
|
|||||||
Reference in New Issue
Block a user