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
2966b6c0
Commit
2966b6c0
authored
Jan 31, 2000
by
terry%mozilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow searching of attachment stuff using boolean charts.
parent
475f0cea
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
1 deletion
+32
-1
buglist.cgi
buglist.cgi
+28
-1
checksetup.pl
checksetup.pl
+4
-0
No files found.
buglist.cgi
View file @
2966b6c0
...
@@ -368,6 +368,34 @@ sub GenerateSQL {
...
@@ -368,6 +368,34 @@ sub GenerateSQL {
push
(
@wherepart
,
"$table.bug_id = bugs.bug_id"
);
push
(
@wherepart
,
"$table.bug_id = bugs.bug_id"
);
$f
=
"$table.thetext"
;
$f
=
"$table.thetext"
;
},
},
"^attachments\..*,"
=>
sub
{
my
$table
=
"attachments_$chartid"
;
push
(
@supptables
,
"LEFT JOIN attachments $table ON bugs.bug_id = $table.bug_id"
);
$f
=~
m/^attachments\.(.*)$/
;
my
$field
=
$1
;
if
(
$t
eq
"changedby"
)
{
$v
=
DBNameToIdAndCheck
(
$v
);
$q
=
SqlQuote
(
$v
);
$field
=
"submitter_id"
;
$t
=
"equals"
;
}
elsif
(
$t
eq
"changedbefore"
)
{
$v
=
SqlifyDate
(
$v
);
$q
=
SqlQuote
(
$v
);
$field
=
"creation_ts"
;
$t
=
"lessthan"
;
}
elsif
(
$t
eq
"changedafter"
)
{
$v
=
SqlifyDate
(
$v
);
$q
=
SqlQuote
(
$v
);
$field
=
"creation_ts"
;
$t
=
"greaterthan"
;
}
if
(
$field
eq
"ispatch"
)
{
if
(
$v
ne
"0"
&&
$v
ne
"1"
)
{
return
Error
(
"The only legal values for the 'Attachment is patch' field is 0 or 1."
);
}
}
$f
=
"$table.$field"
;
},
"^changedin,"
=>
sub
{
"^changedin,"
=>
sub
{
$f
=
"(to_days(now()) - to_days(bugs.delta_ts))"
;
$f
=
"(to_days(now()) - to_days(bugs.delta_ts))"
;
},
},
...
@@ -826,7 +854,6 @@ query. You will have to start over at the <A HREF="query.cgi">query page</A>.
...
@@ -826,7 +854,6 @@ query. You will have to start over at the <A HREF="query.cgi">query page</A>.
exit
;
exit
;
}
}
my
@list
=
split
(
/:/
,
$::COOKIE
{
'BUGLIST'
});
my
@list
=
split
(
/:/
,
$::COOKIE
{
'BUGLIST'
});
$::MFORM
{
'bug_id'
}
=
\
@list
;
$::FORM
{
'bug_id'
}
=
join
(
','
,
@list
);
$::FORM
{
'bug_id'
}
=
join
(
','
,
@list
);
if
(
!
$::FORM
{
'order'
})
{
if
(
!
$::FORM
{
'order'
})
{
$::FORM
{
'order'
}
=
'reuse last sort'
;
$::FORM
{
'order'
}
=
'reuse last sort'
;
...
...
checksetup.pl
View file @
2966b6c0
...
@@ -898,6 +898,10 @@ AddFDef("qa_contact", "QAContact", 0);
...
@@ -898,6 +898,10 @@ AddFDef("qa_contact", "QAContact", 0);
AddFDef
(
"cc"
,
"CC"
,
0
);
AddFDef
(
"cc"
,
"CC"
,
0
);
AddFDef
(
"dependson"
,
"BugsThisDependsOn"
,
0
);
AddFDef
(
"dependson"
,
"BugsThisDependsOn"
,
0
);
AddFDef
(
"blocked"
,
"OtherBugsDependingOnThis"
,
0
);
AddFDef
(
"blocked"
,
"OtherBugsDependingOnThis"
,
0
);
AddFDef
(
"attachments.description"
,
"Attachment description"
,
0
);
AddFDef
(
"attachments.thedata"
,
"Attachment data"
,
0
);
AddFDef
(
"attachments.mimetype"
,
"Attachment mime type"
,
0
);
AddFDef
(
"attachments.ispatch"
,
"Attachment is patch"
,
0
);
AddFDef
(
"target_milestone"
,
"Target Milestone"
,
0
);
AddFDef
(
"target_milestone"
,
"Target Milestone"
,
0
);
AddFDef
(
"delta_ts"
,
"Last changed date"
,
0
);
AddFDef
(
"delta_ts"
,
"Last changed date"
,
0
);
AddFDef
(
"(to_days(now()) - to_days(bugs.delta_ts))"
,
"Days since bug changed"
,
AddFDef
(
"(to_days(now()) - to_days(bugs.delta_ts))"
,
"Days since bug changed"
,
...
...
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