]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 756314: Fix dropping of unique matches when the "confirm page" page is display.
authorByron Jones <bjones@mozilla.com>
Mon, 28 May 2012 16:54:21 +0000 (00:54 +0800)
committerByron Jones <bjones@mozilla.com>
Mon, 28 May 2012 16:54:21 +0000 (00:54 +0800)
r=LpSolit, a=LpSolit

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

index 5549b516d86193a452ce6558a4694e1893aa7a95..cff20d23727ca369bd7a736a2f0234764ee523d8 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 %]
 
-  [% SET exclude_these = 
-           matches.keys.merge(['Bugzilla_login', 'Bugzilla_password']) %]
+  [% SET exclude_these = ['Bugzilla_login', 'Bugzilla_password'] %]
+  [% FOREACH key IN matches.keys %]
+    [% exclude_these.push(key) IF cgi.param(key) == '' %]
+  [% END %]
   [% SET exclude = '^' _ exclude_these.join('|') _ '$' %]
   [% PROCESS "global/hidden-fields.html.tmpl" exclude = exclude %]