This commit is contained in:
DavidBadura
2015-02-06 17:31:13 +00:00
parent b81cad6243
commit a58ceedefc
5 changed files with 92 additions and 5 deletions

View File

@@ -70,6 +70,14 @@ class Taskwarrior
$options[] = 'priority:' . $params['priority'];
}
if (array_key_exists('tags', $params)) {
if (is_array($params['tags'])) {
$options[] = 'tags:' . implode(',', $params['tags']);
} else {
$options[] = 'tags:' . $params['tags'];
}
}
if (array_key_exists('description', $params)) {
$options[] = $params['description'];
}