use vars qw(%versions
%components
%COOKIE
- %MFORM
%legal_keywords
%legal_opsys
%legal_platform
# a verification form.
if (!$vok || !$cok || !$mok || (Param('usebuggroups') && !defined($::FORM{'addtonewgroup'}))) {
$vars->{'form'} = \%::FORM;
+ $vars->{'mform'} = \%::MFORM;
if (!$vok || !$cok || !$mok) {
$vars->{'verify_fields'} = 1;
# ask the duper what he/she wants to do.
$vars->{'form'} = \%::FORM;
+ $vars->{'mform'} = \%::MFORM;
$vars->{'original_bug_id'} = $original;
$vars->{'duplicate_bug_id'} = $dupe;
$::FORM{'delta_ts'} = $delta_ts;
$vars->{'form'} = \%::FORM;
+ $vars->{'mform'} = \%::MFORM;
$vars->{'bug_id'} = $id;
$vars->{'quoteUrls'} = \"eUrls;
[%# 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
[%# 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
[%# 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.
[%# 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
#%]
[%# 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 %]