From 990027e1306f188089849562ad49ba477d34bf67 Mon Sep 17 00:00:00 2001 From: poltawski Date: Thu, 27 Dec 2007 12:12:19 +0000 Subject: [PATCH] MDL-12530 - fixed changing of tag type in tag management merged from MOODLE_19_STABLE --- tag/manage.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tag/manage.php b/tag/manage.php index edeebf5bf9..2d8b5caffe 100644 --- a/tag/manage.php +++ b/tag/manage.php @@ -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)) { -- 2.39.5