@@ -120,7 +120,7 @@ sub fix_bug {
120
120
# Attachment metadata is included by default but not data
121
121
if (filter_wants_nocache($params , ' attachments' )) {
122
122
my $attachment_params = { ids => $data -> {id } };
123
- if (!filter_wants_nocache($params , ' data ' , ' attachments' )
123
+ if (!filter_wants_nocache($params , ' attachments.data ' )
124
124
&& !$params -> {attachmentdata })
125
125
{
126
126
$attachment_params -> {exclude_fields } = [' data' ];
@@ -356,8 +356,7 @@ sub fix_attachment {
356
356
if (exists $data -> {flags } && @{ $data -> {flags } }) {
357
357
my @new_flags ;
358
358
foreach my $flag (@{ $data -> {flags } }) {
359
- $flag = fix_flag($flag );
360
- push (@new_flags , filter($params , $flag , ' flags' ));
359
+ push (@new_flags , fix_flag($flag ));
361
360
}
362
361
$data -> {flags } = \@new_flags ;
363
362
}
@@ -523,9 +522,7 @@ sub fix_include_exclude {
523
522
sub filter_wants_nocache {
524
523
my ($params , $field , $prefix , $use_original ) = @_ ;
525
524
526
- my $cache = Bugzilla-> request_cache-> {filter_wants };
527
- my $cached_field = $prefix ? " ${prefix} .${field} " : $field ;
528
- delete $cache -> {$cached_field } if $cache ;
525
+ delete Bugzilla-> request_cache-> {filter_wants };
529
526
530
527
if ($use_original ) {
531
528
my $cache = Bugzilla-> request_cache;
0 commit comments