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
3f57a81f
Commit
3f57a81f
authored
Sep 15, 2001
by
myk%mozilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for bug 97877: changed* operators now work for attachment statuses on query form.
Fix by Myk Melez <myk@mozilla.org> r=jake@acutex.net
parent
247a5033
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
buglist.cgi
buglist.cgi
+10
-4
No files found.
buglist.cgi
View file @
3f57a81f
...
...
@@ -416,7 +416,7 @@ sub GenerateSQL {
$f
=
"$table.$field"
;
},
# 2001-05-16 myk@mozilla.org: enable querying against attachment status
# if this installation has enabled use of the attachment
manag
er.
# if this installation has enabled use of the attachment
track
er.
"^attachstatusdefs.name,"
=>
sub
{
my
$attachtable
=
"attachments_$chartid"
;
my
$statustable
=
"attachstatuses_$chartid"
;
...
...
@@ -427,9 +427,15 @@ sub GenerateSQL {
push
(
@wherepart
,
"bugs.bug_id = $attachtable.bug_id"
);
push
(
@wherepart
,
"$attachtable.attach_id = $statustable.attach_id"
);
push
(
@wherepart
,
"$statustable.statusid = $statusdefstable.id"
);
my
$table
=
$statusdefstable
;
my
$field
=
"name"
;
$f
=
"$table.$field"
;
# When the operator is changedbefore, changedafter, changedto,
# or changedby, $f appears in the query as "fielddefs.name = '$f'",
# so it must be the exact name of the table/field as they appear
# in the fielddefs table (i.e. attachstatusdefs.name). For all
# other operators, $f appears in the query as "$f = value", so it
# should be the name of the table/field with the correct table
# alias for this chart entry (f.e. attachstatusdefs_0.name).
$f
=
(
$t
=~
/^changed/
)
?
"attachstatusdefs.name"
:
"$statusdefstable.name"
;
},
"^changedin,"
=>
sub
{
$f
=
"(to_days(now()) - to_days(bugs.delta_ts))"
;
...
...
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