mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
ImportExport - fix create export from import fails with error
"Too few arguments to function importexport_definitions_ui::save(), 0 passed..."
This commit is contained in:
parent
2737ae2b99
commit
fdddeb1e84
@ -400,13 +400,13 @@ class importexport_definitions_ui
|
|||||||
$definition = new importexport_definition($id);
|
$definition = new importexport_definition($id);
|
||||||
try {
|
try {
|
||||||
$export = $bodefinitions->export_from_import($definition);
|
$export = $bodefinitions->export_from_import($definition);
|
||||||
$export->save();
|
$export->save($definition->get_title());
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
if($export)
|
if($export)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$export->name = $export->name.' ' . $GLOBALS['egw_info']['user']['account_lid'];
|
$export->name = $export->name.' ' . $GLOBALS['egw_info']['user']['account_lid'];
|
||||||
$export->save();
|
$export->save($export->name);
|
||||||
} catch (Exception $ex) {
|
} catch (Exception $ex) {
|
||||||
$failed++;
|
$failed++;
|
||||||
$msg .= lang('Duplicate name, please choose another.');
|
$msg .= lang('Duplicate name, please choose another.');
|
||||||
|
Loading…
Reference in New Issue
Block a user