Skip to content

Commit

Permalink
Fix handling EAS categories/tags.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Mar 22, 2016
1 parent 61279f1 commit 5716449
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions nag/lib/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -1231,6 +1231,7 @@ public function replace($uid, $content, $contentType)
$task = new Nag_Task();
$task->fromASTask($content);
$task->owner = $owner;
$task->uid = $uid;
$factory->create($existing->tasklist)->modify($taskId, $task->toHash());
break;
default:
Expand Down
6 changes: 3 additions & 3 deletions nag/lib/Task.php
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ class Nag_Task
/**
* Task tags (lazy loaded).
*
* @var array
* @var string
*/
protected $_tags;

Expand Down Expand Up @@ -946,7 +946,7 @@ public function synchronizeTags(array $tags)
'task'
);
}
$this->_tags = $this->internaltags;
$this->_tags = implode(',', $this->internaltags);
} else {
$this->_tags = $tags;
}
Expand Down Expand Up @@ -1589,7 +1589,7 @@ public function fromASTask(Horde_ActiveSync_Message_Task $message)

/* Categories */
if (is_array($message->categories) && count($message->categories)) {
$this->tags = $message->categories;
$this->tags = implode(',', $message->categories);
}
}

Expand Down

0 comments on commit 5716449

Please sign in to comment.