]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 634243: Stop confirm-match.html.tmpl from sending extra, empty values for
authorMax Kanat-Alexander <mkanat@bugzilla.org>
Tue, 15 Feb 2011 16:20:06 +0000 (08:20 -0800)
committerMax Kanat-Alexander <mkanat@bugzilla.org>
Tue, 15 Feb 2011 16:20:06 +0000 (08:20 -0800)
each field being confirmed. This fixes a bug where confirming would fail,
displaying a value with an extra comma at the end.
r=LpSolit, a=LpSolit

template/en/default/global/confirm-user-match.html.tmpl

index 67a901f0e3206a3b59500ec2857b3cb298ee0d07..5549b516d86193a452ce6558a4694e1893aa7a95 100644 (file)
                 [% ELSE %]
                   matched
                   <b>[% query.value.users.0.identity FILTER html %]</b>
+                  <input type="hidden" name="[% field.key FILTER html %]"
+                         value="[% query.value.users.0.login FILTER html %]">
                 [% END %]
             [% ELSE %]
                 [% IF (query.key.length < 3) && !Param('emailsuffix') %]
 
 [% IF matchsuccess == 1 %]
 
-  [% PROCESS "global/hidden-fields.html.tmpl" exclude="^Bugzilla_(login|password)$" %]
+  [% SET exclude_these = 
+           matches.keys.merge(['Bugzilla_login', 'Bugzilla_password']) %]
+  [% SET exclude = '^' _ exclude_these.join('|') _ '$' %]
+  [% PROCESS "global/hidden-fields.html.tmpl" exclude = exclude %]
 
   <p>
     <input type="submit" id="continue" value="Continue">