]> 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 17:00:27 +0000 (01:00 +0800)
committerByron Jones <bjones@mozilla.com>
Mon, 28 May 2012 17:00:27 +0000 (01:00 +0800)
r=LpSolit, a=LpSolit

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

index efa9dae3ca4e5a561d10b5fff8ab32884e517e58..7d5002f1130f656f1f26b0cea71afd6fa414660e 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 %]