Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Bugzilla/Search.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3219,7 +3219,7 @@ sub _flagtypes_nonchanged {
# don't call build_subselect as this must run as a true sub-select
$args->{term} = "EXISTS (
SELECT 1
FROM $bugs_table bugs_$chart_id
FROM bugs bugs_$chart_id
LEFT JOIN attachments AS attachments_$chart_id
ON bugs_$chart_id.bug_id = attachments_$chart_id.bug_id
LEFT JOIN flags AS flags_$chart_id
Expand Down
9 changes: 9 additions & 0 deletions xt/lib/Bugzilla/Test/Search/Constants.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1257,6 +1257,15 @@ use constant CUSTOM_SEARCH_TESTS => (
]
},

{
name => 'flagtypes.name = <1> AND flagtypes.name = <1>',
contains => [1],
top_params => {j_top => 'AND_G'},
params => [
{f => 'flagtypes.name', o => 'equals', v => '<1>'},
{f => 'flagtypes.name', o => 'equals', v => '<1>'},
]
},
);

1;