fix until & recurring
This commit is contained in:
@@ -261,7 +261,7 @@ class Task
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
* @return Recurring
|
||||
*/
|
||||
public function getRecurring()
|
||||
{
|
||||
|
@@ -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()
|
||||
);
|
||||
|
@@ -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'];
|
||||
}
|
||||
|
Reference in New Issue
Block a user