Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
f97a2e07
Commit
f97a2e07
authored
Nov 22, 2002
by
bugreport%peshkin.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 180980 Doing 2 email searches fails when searching for CC list members
Patch by bugreport@peshkin.net r=myk, a=justdave
parent
1e400dc0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
8 deletions
+21
-8
Search.pm
Bugzilla/Search.pm
+21
-8
No files found.
Bugzilla/Search.pm
View file @
f97a2e07
...
...
@@ -287,6 +287,7 @@ sub init {
}
my
$chartid
;
my
$sequence
=
0
;
# $type_id is used by the code that queries for attachment flags.
my
$type_id
=
0
;
my
$f
;
...
...
@@ -312,23 +313,35 @@ sub init {
"^cc,(anyexact|substring)"
=>
sub
{
my
$list
;
$list
=
$self
->
ListIDsForEmail
(
$t
,
$v
);
my
$chartseq
;
$chartseq
=
$chartid
;
if
(
$chartid
eq
""
)
{
$chartseq
=
"CC$sequence"
;
$sequence
++
;
}
if
(
$list
)
{
push
(
@supptables
,
"LEFT JOIN cc cc_$chart
id ON bugs.bug_id = cc_$chartid.bug_id AND cc_$chartid
.who IN($list)"
);
$term
=
"cc_$chart
id
.who IS NOT NULL"
;
push
(
@supptables
,
"LEFT JOIN cc cc_$chart
seq ON bugs.bug_id = cc_$chartseq.bug_id AND cc_$chartseq
.who IN($list)"
);
$term
=
"cc_$chart
seq
.who IS NOT NULL"
;
}
else
{
push
(
@supptables
,
"LEFT JOIN cc cc_$chart
id ON bugs.bug_id = cc_$chartid
.bug_id"
);
push
(
@supptables
,
"LEFT JOIN cc cc_$chart
seq ON bugs.bug_id = cc_$chartseq
.bug_id"
);
push
(
@supptables
,
"LEFT JOIN profiles map_cc_$chart
id ON cc_$chartid.who = map_cc_$chartid
.userid"
);
$ff
=
$f
=
"map_cc_$chart
id
.login_name"
;
push
(
@supptables
,
"LEFT JOIN profiles map_cc_$chart
seq ON cc_$chartseq.who = map_cc_$chartseq
.userid"
);
$ff
=
$f
=
"map_cc_$chart
seq
.login_name"
;
my
$ref
=
$funcsbykey
{
",anyexact"
};
&
$ref
;
}
},
"^cc,"
=>
sub
{
push
(
@supptables
,
"LEFT JOIN cc cc_$chartid ON bugs.bug_id = cc_$chartid.bug_id"
);
my
$chartseq
;
$chartseq
=
$chartid
;
if
(
$chartid
eq
""
)
{
$chartseq
=
"CC$sequence"
;
$sequence
++
;
}
push
(
@supptables
,
"LEFT JOIN cc cc_$chartseq ON bugs.bug_id = cc_$chartseq.bug_id"
);
push
(
@supptables
,
"LEFT JOIN profiles map_cc_$chart
id ON cc_$chartid.who = map_cc_$chartid
.userid"
);
$f
=
"map_cc_$chart
id
.login_name"
;
push
(
@supptables
,
"LEFT JOIN profiles map_cc_$chart
seq ON cc_$chartseq.who = map_cc_$chartseq
.userid"
);
$f
=
"map_cc_$chart
seq
.login_name"
;
},
"^long_?desc,changedby"
=>
sub
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment