From f00c9393e830c156cdff7322eab3b26eb3dcbe1a Mon Sep 17 00:00:00 2001 From: icewing Date: Thu, 20 Mar 2008 14:33:13 +0000 Subject: Marcus Povey * Tags git-svn-id: https://code.elgg.org/elgg/trunk@259 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/tasklist/index.php | 11 +++++++++++ mod/tasklist/views/default/tasklist/newtask.php | 1 + 2 files changed, 12 insertions(+) (limited to 'mod/tasklist') 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"; diff --git a/mod/tasklist/views/default/tasklist/newtask.php b/mod/tasklist/views/default/tasklist/newtask.php index 420c409d6..3659cda84 100644 --- a/mod/tasklist/views/default/tasklist/newtask.php +++ b/mod/tasklist/views/default/tasklist/newtask.php @@ -1,5 +1,6 @@
+ -- cgit v1.2.3