Skip to content

Commit

Permalink
Bug: 11563 Fix adding tags when using Kolab.
Browse files Browse the repository at this point in the history
Kolab doesn't use the UID generated by Nag_Driver::add(), but
calculates it after, so we need to overwrite the UID that we send
to the tagger, or else it is tagged with the incorrect UID.

This was causing the kolab object to not be completly tagged until
the backend was synced with Horde again - essentially creating
orphaned rampage_object entries with the incorrect UID.
  • Loading branch information
mrubinsk committed Feb 4, 2016
1 parent 546764a commit bdb81d1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nag/lib/Driver/Kolab.php
Expand Up @@ -316,6 +316,7 @@ protected function _add(array $task)
$object['uid'] = $this->_getData()->generateUid();
try {
$this->_getData()->create($object);
$task['uid'] = $object['uid'];
$this->_addTags($task);
} catch (Horde_Kolab_Storage_Exception $e) {
throw new Nag_Exception($e);
Expand Down

0 comments on commit bdb81d1

Please sign in to comment.