From be2e38ed92b2416200ad8e6e730fdb3421ff6d5b Mon Sep 17 00:00:00 2001 From: Marina Glancy Date: Tue, 21 Nov 2017 14:54:45 +0800 Subject: [PATCH] MDL-56864 forms: boost templates don't allow remove last tag --- lib/form/tags.php | 1 + theme/boost/templates/core_form/element-tags-inline.mustache | 1 + theme/boost/templates/core_form/element-tags.mustache | 1 + 3 files changed, 3 insertions(+) diff --git a/lib/form/tags.php b/lib/form/tags.php index b62eaf97f66..390c723ed58 100644 --- a/lib/form/tags.php +++ b/lib/form/tags.php @@ -257,6 +257,7 @@ class MoodleQuickForm_tags extends MoodleQuickForm_autocomplete { $url = new moodle_url('/tag/manage.php', array('tc' => $this->get_tag_collection())); $context['managestandardtagsurl'] = $url->out(false); } + $context['nameraw'] = $this->getName(); return $context; } diff --git a/theme/boost/templates/core_form/element-tags-inline.mustache b/theme/boost/templates/core_form/element-tags-inline.mustache index d4a79dca7a1..5552bac5f36 100644 --- a/theme/boost/templates/core_form/element-tags-inline.mustache +++ b/theme/boost/templates/core_form/element-tags-inline.mustache @@ -1,6 +1,7 @@ {{< core_form/element-template-inline }} {{$element}} {{^element.frozen}} +