fix until & recurring

This commit is contained in:
DavidBadura
2015-02-08 18:32:51 +00:00
parent 85132b8189
commit 3fa353d533
4 changed files with 58 additions and 1 deletions

View File

@@ -261,7 +261,7 @@ class Task
}
/**
* @return string
* @return Recurring
*/
public function getRecurring()
{

View File

@@ -196,6 +196,8 @@ class TaskManager
'tags' => $task->getTags(),
'due' => $task->getDue() ? $task->getDue()->format('Ymd\THis\Z') : null,
'wait' => $task->getWait() ? $task->getWait()->format('Ymd\THis\Z') : null,
'until' => $task->getUntil() ? $task->getUntil()->format('Ymd\THis\Z') : null,
'recur' => $task->getRecurring() ? $task->getRecurring()->getValue() : null,
],
$task->getUuid()
);

View File

@@ -205,6 +205,10 @@ class Taskwarrior
$options[] = 'until:' . $params['until'];
}
if (array_key_exists('recur', $params)) {
$options[] = 'recur:' . $params['recur'];
}
if (array_key_exists('project', $params)) {
$options[] = 'project:' . $params['project'];
}