check if categories are already updated to global == cat_owner=0, has to run as API update, before apps (tracker) creates new global cats with cat_owner=0 stopping the update

This commit is contained in:
Ralf Becker 2012-04-13 14:35:55 +00:00
parent 797a412ec8
commit 025c3d3b44

View File

@ -331,6 +331,11 @@ function phpgwapi_upgrade1_9_010()
$prefs->save_repository(false, 'default'); $prefs->save_repository(false, 'default');
egw_vfs::$is_root = false; egw_vfs::$is_root = false;
// check if categories are already updated to global == cat_owner=0
// has to run as API update, before apps (tracker) creates new global cats with cat_owner=0 stopping the update
categories::invalidate_cache();
categories::init_cache(); // updates the cats
return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.9.011'; return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '1.9.011';
} }