Commit 3854512a authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 599953: Editing an advanced search doesn't remember values passed to…

Bug 599953: Editing an advanced search doesn't remember values passed to discrete custom fields added by extensions r/a=mkanat
parent c4f408c9
...@@ -99,10 +99,12 @@ sub PrefillForm { ...@@ -99,10 +99,12 @@ sub PrefillForm {
"chart_format", "cumulate", "x_labels_vertical", "chart_format", "cumulate", "x_labels_vertical",
"category", "subcategory", "name", "newcategory", "category", "subcategory", "name", "newcategory",
"newsubcategory", "public", "frequency"); "newsubcategory", "public", "frequency");
# These fields can also have default values (when used in reports). # These fields can also have default values. And because there are
my @custom_select_fields = # hooks in the advanced search page which let you add fields as
grep { $_->type == FIELD_TYPE_SINGLE_SELECT } Bugzilla->active_custom_fields; # discrete forms, we also need to retain the operators.
push(@list, map { $_->name } @custom_select_fields); my @custom_fields = Bugzilla->active_custom_fields;
push(@list, map { $_->name } @custom_fields);
push(@list, map { $_->name . '_type'} @custom_fields);
foreach my $name (@list) { foreach my $name (@list) {
$default{$name} = []; $default{$name} = [];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment