]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 684744: All fields in the "People" section are reset when clicking "Edit Search"
authorFrédéric Buclin <LpSolit@gmail.com>
Wed, 7 Sep 2011 14:49:20 +0000 (16:49 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Wed, 7 Sep 2011 14:49:20 +0000 (16:49 +0200)
r=glob a=LpSolit

query.cgi

index a88b11c963b135d3505b16b076cdb64c3a545f90..df7339bff29d0931bc591870bf2d71fcd113b4c1 100755 (executable)
--- a/query.cgi
+++ b/query.cgi
@@ -147,7 +147,7 @@ sub PrefillForm {
         # If the name ends in a number (which it does for the fields which
         # are part of the email searching), we use the array
         # positions to show the defaults for that number field.
-        elsif ($name =~ /^(\w)(\d)$/) {
+        elsif ($name =~ /^(\w+)(\d)$/) {
             $default{$1}->[$2] = $values[0];
         }
         else {