]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 539229 - Editing a search with resolution '---' does not remember that resolution
authorghendricks%novell.com <>
Tue, 12 Jan 2010 17:26:28 +0000 (17:26 +0000)
committerghendricks%novell.com <>
Tue, 12 Jan 2010 17:26:28 +0000 (17:26 +0000)
 patch by ghendricks r=LpSolit a=LpSolit

template/en/default/search/form.html.tmpl

index 6ee301dd03f94a89f7eeb7bb9dde218deb13c48e..7db07fc79c5648fc69d353246bb4aa42638b6de2 100644 (file)
@@ -624,10 +624,11 @@ function doOnSelectProduct(selectmode) {
     <select name="[% sel.name %]" id="[% sel.name %]"
             multiple="multiple" size="[% sel.size %]">
       [% FOREACH value = ${sel.name} %]
-      [% IF value.id %]
-        [%# This only applies for Resolution really %]
-          <option value="[% value.name OR '---' FILTER html %]"
-            [% " selected" IF lsearch(default.${sel.name}, value.name) != -1 %]>
+        [% IF value.id %]
+          [%# This only applies for Resolution really %]
+          [% v = value.name OR '---' -%]
+          <option value="[% v FILTER html %]"
+            [% " selected" IF lsearch(default.${sel.name}, v) != -1 %]>
             [% display_value(sel.name, value.name) FILTER html %]
           </option>
         [% ELSE %]