MDL-13691 - make the tag description edition work again.

This commit is contained in:
scyrma
2008-02-27 09:33:24 +00:00
parent a6b6baf25e
commit 7684e6314d
2 changed files with 21 additions and 1 deletions
+2
View File
@@ -49,6 +49,8 @@ $tagform->set_data($tag);
// If new data has been sent, update the tag record
if ($tagnew = $tagform->get_data()) {
tag_description_set($tag_id, stripslashes($tagnew->description), $tagnew->descriptionformat);
if (!has_capability('moodle/tag:manage', $systemcontext)) {
unset($tagnew->name);
unset($tagnew->rawname);