summaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2011-02-15 17:18:17 +0100
committerMax Kanat-Alexander <mkanat@bugzilla.org>2011-02-15 17:18:17 +0100
commit0b8a6e8c9f20e305bea22b2b24953601b0918dd4 (patch)
tree0a359474a8660f82a790051fe715bb98dd7855d7 /template
parent1bc66daa8b5b8c3a2649e900bc4cc1801dfc3b6f (diff)
downloadbugzilla-0b8a6e8c9f20e305bea22b2b24953601b0918dd4.tar.gz
bugzilla-0b8a6e8c9f20e305bea22b2b24953601b0918dd4.tar.xz
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
Diffstat (limited to 'template')
-rw-r--r--template/en/default/global/confirm-user-match.html.tmpl7
1 files changed, 6 insertions, 1 deletions
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
<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') %]
@@ -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 %]
<p>
<input type="submit" id="continue" value="Continue">