mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-13 09:28:29 +01:00
Set default export-<appname> definitions as the site-wide default if no default is set
This commit is contained in:
parent
51015de7b8
commit
da16cd319c
@ -175,6 +175,14 @@ class importexport_definitions_bo {
|
|||||||
$definition->set_record( $definition_data );
|
$definition->set_record( $definition_data );
|
||||||
$definition->save( $definition_id );
|
$definition->save( $definition_id );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set as default definition for the app, if there is no site default yet
|
||||||
|
if($definition->type == 'export' && $definition->name == 'export-'.$definition->application &&
|
||||||
|
!$GLOBALS['egw']->preferences->default[$definition->application]['nextmatch-export-definition'])
|
||||||
|
{
|
||||||
|
$GLOBALS['egw']->preferences->add($definition->application, 'nextmatch-export-definition', $definition->name, 'default');
|
||||||
|
$GLOBALS['egw']->preferences->save_repository(true, 'default');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user