]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1202588: Custom preference multiselect widget - size gets set to null. r=gerv
authorColin Joy <bugzilla@colinjoy.net>
Fri, 11 Sep 2015 14:34:50 +0000 (15:34 +0100)
committerGervase Markham <gerv@gerv.net>
Fri, 11 Sep 2015 14:34:50 +0000 (15:34 +0100)
template/en/default/admin/params/common.html.tmpl

index db3bde7770239490af47d5cc6a17150fe6944617..fd9fd3ed12bd463221cca5c8c71d8dad7ec1aed4 100644 (file)
@@ -32,7 +32,7 @@
         <label for="[% param.name FILTER html %]-off">Off</label>
       [% ELSIF param.type == "m" %]
         [% boxSize = 5 %]
-        [% boxSize = param.choices.size IF param.choices.size < 5 %]
+        [% SET boxSize = param.choices.size IF param.choices.size < 5 %]
 
         <select multiple="multiple" size="[% boxSize FILTER html %]"
                 name="[% param.name FILTER html %]" id="[% param.name FILTER html %]">
@@ -48,7 +48,7 @@
                name="[% param.name FILTER html %]"
                value="[% Param(param.name) FILTER html %]"><br>
         [% boxSize = 7 %]
-        [% boxSize = 3 + param.choices.size IF param.choices.size < 7 %]
+        [% SET boxSize = 3 + param.choices.size IF param.choices.size < 7 %]
         [% plist = Param(param.name).split(',') %]
 
         <table id="table_[% param.name FILTER html %]" class="bz_default_hidden">