Fix bug where configuration object UID was modified on object update (#4051)

This commit is contained in:
Aleksander Machniak 2014-12-09 09:42:46 -05:00
parent 6780589284
commit c3e142094f

View file

@ -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']);