mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-27 14:25:36 +02:00
Remove incorrect attempt at setting defaults
This commit is contained in:
@@ -33,15 +33,4 @@ while (false !== ($appdir = $egwdir->read())) {
|
|||||||
if ( $extension != 'xml' ) continue;
|
if ( $extension != 'xml' ) continue;
|
||||||
importexport_definitions_bo::import( $file );
|
importexport_definitions_bo::import( $file );
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set as default definition for the app, if there is no site default yet
|
|
||||||
if(!$GLOBALS['egw']->preferences->default[$appdir]['nextmatch-export-definition']) {
|
|
||||||
$bo = new importexport_definitions_bo(array('name' => "export-$appdir"));
|
|
||||||
$definitions = $bo->get_definitions();
|
|
||||||
if($definitions[0]) {
|
|
||||||
$definition = $definition[0];
|
|
||||||
$GLOBALS['egw']->preferences->add($appdir, 'nextmatch-export-definition', "export-$appdir", 'default');
|
|
||||||
$GLOBALS['egw']->preferences->save_repository(true, 'default');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user