Fix bug where configuration object UID was modified on object update (#4051)
This commit is contained in:
parent
6780589284
commit
c3e142094f
1 changed files with 3 additions and 3 deletions
|
@ -48,9 +48,6 @@ class kolab_format_configuration extends kolab_format
|
||||||
*/
|
*/
|
||||||
public function set(&$object)
|
public function set(&$object)
|
||||||
{
|
{
|
||||||
// set common object properties
|
|
||||||
parent::set($object);
|
|
||||||
|
|
||||||
// read type-specific properties
|
// read type-specific properties
|
||||||
switch ($object['type']) {
|
switch ($object['type']) {
|
||||||
case 'dictionary':
|
case 'dictionary':
|
||||||
|
@ -128,6 +125,9 @@ class kolab_format_configuration extends kolab_format
|
||||||
// adjust content-type string
|
// adjust content-type string
|
||||||
$this->CTYPEv2 = 'application/x-vnd.kolab.configuration.' . $object['type'];
|
$this->CTYPEv2 = 'application/x-vnd.kolab.configuration.' . $object['type'];
|
||||||
|
|
||||||
|
// set common object properties
|
||||||
|
parent::set($object);
|
||||||
|
|
||||||
// cache this data
|
// cache this data
|
||||||
$this->data = $object;
|
$this->data = $object;
|
||||||
unset($this->data['_formatobj']);
|
unset($this->data['_formatobj']);
|
||||||
|
|
Loading…
Add table
Reference in a new issue