From 0b8a6e8c9f20e305bea22b2b24953601b0918dd4 Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Tue, 15 Feb 2011 08:18:17 -0800 Subject: Bug 634243: Stop confirm-match.html.tmpl from sending extra, empty values for 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 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'template') diff --git a/template/en/default/global/confirm-user-match.html.tmpl b/template/en/default/global/confirm-user-match.html.tmpl index 67a901f0e..5549b516d 100644 --- a/template/en/default/global/confirm-user-match.html.tmpl +++ b/template/en/default/global/confirm-user-match.html.tmpl @@ -150,6 +150,8 @@ [% ELSE %] matched [% query.value.users.0.identity FILTER html %] + [% END %] [% ELSE %] [% IF (query.key.length < 3) && !Param('emailsuffix') %] @@ -174,7 +176,10 @@ [% 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 %]

-- cgit v1.2.3-24-g4f1b