mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
only try to save a definition, when there is a definition_id available
This commit is contained in:
parent
4713387be1
commit
898b020fbf
@ -233,7 +233,7 @@ class importexport_definitions_bo {
|
|||||||
$definition_id = $definition->get_identifier() ? $definition->get_identifier() : NULL;
|
$definition_id = $definition->get_identifier() ? $definition->get_identifier() : NULL;
|
||||||
|
|
||||||
$definition->set_record( $definition_data );
|
$definition->set_record( $definition_data );
|
||||||
$definition->save( $definition_id );
|
if (isset($definition_id)) $definition->save( $definition_id );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $definitions;
|
return $definitions;
|
||||||
|
Loading…
Reference in New Issue
Block a user