forked from extern/egroupware
when inserting new set of preferences on preferences::copy_preferences, make sure we copy ONLY the pref and its app and owner, not its ID
This commit is contained in:
parent
62805cc294
commit
24481b5274
@ -830,7 +830,7 @@ class preferences
|
|||||||
{
|
{
|
||||||
$prefs = array_merge(self::unserialize($values), $prefs);
|
$prefs = array_merge(self::unserialize($values), $prefs);
|
||||||
}
|
}
|
||||||
|
unset($row['preference_id']);
|
||||||
//error_log(__LINE__.': '.__METHOD__."() inserting app=$row[preference_app], owner=$row[preference_owner]: ".array2string($prefs));
|
//error_log(__LINE__.': '.__METHOD__."() inserting app=$row[preference_app], owner=$row[preference_owner]: ".array2string($prefs));
|
||||||
$db->insert(self::TABLE, array(
|
$db->insert(self::TABLE, array(
|
||||||
'preference_value' => json_encode($prefs)
|
'preference_value' => json_encode($prefs)
|
||||||
|
Loading…
Reference in New Issue
Block a user