From: Byron Jones Date: Mon, 28 May 2012 16:54:21 +0000 (+0800) Subject: Bug 756314: Fix dropping of unique matches when the "confirm page" page is display. X-Git-Tag: bugzilla-4.0.7~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6db23d97545105fbacf1d679fefa2e0ee24da0f;p=thirdparty%2Fbugzilla.git Bug 756314: Fix dropping of unique matches when the "confirm page" page is display. r=LpSolit, a=LpSolit --- diff --git a/template/en/default/global/confirm-user-match.html.tmpl b/template/en/default/global/confirm-user-match.html.tmpl index 5549b516d8..cff20d2372 100644 --- a/template/en/default/global/confirm-user-match.html.tmpl +++ b/template/en/default/global/confirm-user-match.html.tmpl @@ -150,8 +150,6 @@ [% ELSE %] matched [% query.value.users.0.identity FILTER html %] - [% END %] [% ELSE %] [% IF (query.key.length < 3) && !Param('emailsuffix') %] @@ -176,8 +174,10 @@ [% 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 %]