]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-12530 - fixed changing of tag type in tag management
authorpoltawski <poltawski>
Thu, 27 Dec 2007 12:12:19 +0000 (12:12 +0000)
committerpoltawski <poltawski>
Thu, 27 Dec 2007 12:12:19 +0000 (12:12 +0000)
merged from MOODLE_19_STABLE

tag/manage.php

index edeebf5bf9f362c768a187f76d4d0311a6bce6c3..2d8b5caffe9dad1d3fe98dc121a0e290da007119 100644 (file)
@@ -77,13 +77,14 @@ switch($action) {
         $changed = array();
 
         foreach ($tagschecked as $tag_id) {
-            if (!in_array($tagtypes[$tag_id], $existing_tagtypes)) {
+            if (!array_key_exists($tagtypes[$tag_id], $existing_tagtypes)) {
                 //can not add new types here!!
                 continue;
             }
 
             // update tag type;
             $tag = tag_by_id($tag_id);
+            $tag->timemodified = time();
             $tag->tagtype = $tagtypes[$tag_id];
 
             if (update_record('tag', $tag)) {