Allow specifying export Structure to get a flat zip
This commit is contained in:
parent
222909feb3
commit
1f1678064e
|
@ -74,6 +74,11 @@ if ( canView('Events') ) {
|
|||
else
|
||||
$exportCompress = false;
|
||||
|
||||
if ( !empty($_REQUEST['exportStructure']) )
|
||||
$exportStructure = $_SESSION['export']['structure'] = $_REQUEST['exportStructure'];
|
||||
else
|
||||
$exportStructure = false;
|
||||
|
||||
session_write_close();
|
||||
|
||||
$exportIds = !empty($_REQUEST['eids']) ? $_REQUEST['eids'] : $_REQUEST['id'];
|
||||
|
@ -87,12 +92,13 @@ if ( canView('Events') ) {
|
|||
$exportMisc,
|
||||
$exportFormat,
|
||||
$exportCompress,
|
||||
false, # structure
|
||||
(isset($_REQUEST['exportFile'])?$_REQUEST['exportFile']:''),
|
||||
) )
|
||||
$exportStructure,
|
||||
(!empty($_REQUEST['exportFile'])?$_REQUEST['exportFile']:'zmExport'),
|
||||
)) {
|
||||
ajaxResponse(array('exportFile'=>$exportFile));
|
||||
else
|
||||
} else {
|
||||
ajaxError('Export Failed');
|
||||
}
|
||||
break;
|
||||
case 'download' :
|
||||
require_once(ZM_SKIN_PATH.'/includes/export_functions.php');
|
||||
|
|
Loading…
Reference in New Issue