]> 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:50:55 +0000 (16:50 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Wed, 7 Sep 2011 14:50:55 +0000 (16:50 +0200)
r=glob a=LpSolit

query.cgi

index 43649cc5872c41067d8de924adbefeab55a63951..0502f6c27b51f32ae6b6f16b2164ae69268f8595 100755 (executable)
--- a/query.cgi
+++ b/query.cgi
@@ -107,7 +107,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 {