diff options
author | bbaetz%student.usyd.edu.au <> | 2002-08-27 18:35:05 +0200 |
---|---|---|
committer | bbaetz%student.usyd.edu.au <> | 2002-08-27 18:35:05 +0200 |
commit | 26f9cef39015907b9347bbdbd07c0bb35edb988e (patch) | |
tree | c7b352071c25ac838ab1ec316a06bf3404965663 /template/en/default | |
parent | f5c9d40bc27590493fed124fc8037c24fdd08d73 (diff) | |
download | bugzilla-26f9cef39015907b9347bbdbd07c0bb35edb988e.tar.gz bugzilla-26f9cef39015907b9347bbdbd07c0bb35edb988e.tar.xz |
Bug 161203 - Bug changes with intermediate pages munges fields with
multiple values (e.g., CC)
patch by "Randall M! Gee", r=bbaetz, myk
Diffstat (limited to 'template/en/default')
5 files changed, 16 insertions, 2 deletions
diff --git a/template/en/default/account/login.html.tmpl b/template/en/default/account/login.html.tmpl index b1f2377e5..29b5b1aee 100644 --- a/template/en/default/account/login.html.tmpl +++ b/template/en/default/account/login.html.tmpl @@ -22,6 +22,8 @@ [%# INTERFACE: # target: string. URL to go to after login. # form: hash; the form values which need to be submitted to the target script + # mform: hash; the form values with multiple values which need to be + # submitted to the target script #%] [% PROCESS global/header.html.tmpl diff --git a/template/en/default/bug/process/confirm-duplicate.html.tmpl b/template/en/default/bug/process/confirm-duplicate.html.tmpl index ff8721653..22ae57b75 100644 --- a/template/en/default/bug/process/confirm-duplicate.html.tmpl +++ b/template/en/default/bug/process/confirm-duplicate.html.tmpl @@ -21,6 +21,7 @@ [%# INTERFACE: # form: hash; the form values submitted to the script + # mform: hash; the form multi-values submitted to the script # original_bug_id: number; the bug number for the bug # against which a bug is being duped # duplicate_bug_id: number; the bug number for the bug diff --git a/template/en/default/bug/process/midair.html.tmpl b/template/en/default/bug/process/midair.html.tmpl index 24766aa04..6305c11e4 100644 --- a/template/en/default/bug/process/midair.html.tmpl +++ b/template/en/default/bug/process/midair.html.tmpl @@ -21,6 +21,7 @@ [%# INTERFACE: # form: hash; the form values submitted to the script + # mform: hash; the form multi-values submitted to the script # operations: array; bug activity since the user last displayed the bug form, # used by bug/activity/table.html.tmpl to display recent changes that will # be overwritten if the user submits these changes. See that template diff --git a/template/en/default/bug/process/verify-new-product.html.tmpl b/template/en/default/bug/process/verify-new-product.html.tmpl index 21c5664b8..77a2ab762 100644 --- a/template/en/default/bug/process/verify-new-product.html.tmpl +++ b/template/en/default/bug/process/verify-new-product.html.tmpl @@ -21,6 +21,7 @@ [%# INTERFACE: # form: hash; the form values submitted to the script + # mform: hash; the form multi-values submitted to the script # verify_fields: boolean; whether or not to verify # the version, component, and target milestone fields # versions: array; versions for the new product. diff --git a/template/en/default/global/hidden-fields.html.tmpl b/template/en/default/global/hidden-fields.html.tmpl index e622e7b90..f968fab20 100644 --- a/template/en/default/global/hidden-fields.html.tmpl +++ b/template/en/default/global/hidden-fields.html.tmpl @@ -21,6 +21,8 @@ [%# INTERFACE: # form: hash; the form fields/values for which to generate hidden fields. + # mform: hash; the form fields/values with multiple values for which to + # generate hidden fields. # exclude: string; a regular expression matching fields to exclude # from the list of hidden fields generated by this template #%] @@ -28,6 +30,13 @@ [%# Generate hidden form fields for non-excluded fields. %] [% FOREACH field = form %] [% NEXT IF exclude && field.key.search(exclude) %] - <input type="hidden" name="[% field.key %]" - value="[% field.value | html | html_linebreak %]"> + [% IF mform.${field.key}.size > 1 %] + [% FOREACH mvalue = mform.${field.key} %] + <input type="hidden" name="[% field.key %]" + value="[% mvalue | html | html_linebreak %]"> + [% END %] + [% ELSE %] + <input type="hidden" name="[% field.key %]" + value="[% field.value | html | html_linebreak %]"> + [% END %] [% END %] |