mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 08:23:12 +01:00
fixed not working update for application global categories, which for some reason got created with an owner != -1
This commit is contained in:
parent
c4ed458d53
commit
85475540f6
@ -811,7 +811,7 @@ class categories
|
|||||||
// check if we are already updated to global owner == 0, if not do it now
|
// check if we are already updated to global owner == 0, if not do it now
|
||||||
if (!$GLOBALS['egw']->db->select(self::TABLE,'COUNT(*)','cat_owner=0',__LINE__,__FILE__)->fetchColumn())
|
if (!$GLOBALS['egw']->db->select(self::TABLE,'COUNT(*)','cat_owner=0',__LINE__,__FILE__)->fetchColumn())
|
||||||
{
|
{
|
||||||
$GLOBALS['egw']->db->update(self::TABLE,'cat_owner=0','cat_owner=-1',__LINE__,__FILE__);
|
$GLOBALS['egw']->db->update(self::TABLE,'cat_owner=0',"(cat_owner=-1 OR cat_appname='phpgw')",__LINE__,__FILE__);
|
||||||
$GLOBALS['egw']->db->insert(self::TABLE,array(
|
$GLOBALS['egw']->db->insert(self::TABLE,array(
|
||||||
'cat_main' => 0,
|
'cat_main' => 0,
|
||||||
'cat_parent' => 0,
|
'cat_parent' => 0,
|
||||||
|
Loading…
Reference in New Issue
Block a user