mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-18 06:48:50 +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')
|
||||
{
|
||||
$oExporter->Cleanup();
|
||||
ReportErrorAndExit("Export failed: '{$aStatus['message']}'");
|
||||
}
|
||||
else
|
||||
@@ -501,6 +502,7 @@ function DoExport(Page $oP, BulkExport $oExporter, $bInteractive = false)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Command Line mode
|
||||
|
||||
Reference in New Issue
Block a user