diff options
Diffstat (limited to 'mod/tasklist/index.php')
-rw-r--r-- | mod/tasklist/index.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mod/tasklist/index.php b/mod/tasklist/index.php index 5491baea8..fe7e5996f 100644 --- a/mod/tasklist/index.php +++ b/mod/tasklist/index.php @@ -13,6 +13,7 @@ $status = get_input("status"); $action = get_input("action"); $guid = get_input("guid"); + $tags = get_input("tags"); $limit = get_input("limit",10); $offset = get_input("offset",0); @@ -29,6 +30,16 @@ $entity->setMetaData('task', $task, 'text'); $entity->setMetaData('status', 'notdone', 'text'); + if ($tags!="") + { + $tags = explode(",",$tags); + + foreach ($tags as $tag) + { + $tag = santitise_string($tag); + $entity->setMetaData($tag, $tag); + } + } $entity->save(); } else echo "error"; |