aboutsummaryrefslogtreecommitdiff
path: root/mod/tasklist
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-20 14:33:13 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-20 14:33:13 +0000
commitf00c9393e830c156cdff7322eab3b26eb3dcbe1a (patch)
tree552c5c57d1bb75132e2622cc84d56136694e29bb /mod/tasklist
parente323f6a794c742ffe0166ba223cf7de059d6c898 (diff)
downloadelgg-f00c9393e830c156cdff7322eab3b26eb3dcbe1a.tar.gz
elgg-f00c9393e830c156cdff7322eab3b26eb3dcbe1a.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* Tags git-svn-id: https://code.elgg.org/elgg/trunk@259 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/tasklist')
-rw-r--r--mod/tasklist/index.php11
-rw-r--r--mod/tasklist/views/default/tasklist/newtask.php1
2 files changed, 12 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";
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 @@
<form method="post">
<textarea name="task"></textarea>
+ <input type="text" name="tags" />
<input type="hidden" name="action" value="newtask"/>
<input type="hidden" name="guid" value="<?php echo $vars['guid']; ?>"/>
<input type="hidden" name="owner_id" value="<?php echo $vars['owner_id']; ?>"/>