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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
82787bc9
Commit
82787bc9
authored
Jul 20, 2005
by
mozilla%colinogilvie.co.uk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 282737: Software Error from time-tracking fields during Change Columns
Patch by Joel, Me, r=wurblzap, a=myk
parent
3d9cbd26
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
7 deletions
+15
-7
Search.pm
Bugzilla/Search.pm
+5
-5
buglist.cgi
buglist.cgi
+10
-2
No files found.
Bugzilla/Search.pm
View file @
82787bc9
...
@@ -148,6 +148,11 @@ sub init {
...
@@ -148,6 +148,11 @@ sub init {
push
@supptables
,
"INNER JOIN components AS map_components "
.
push
@supptables
,
"INNER JOIN components AS map_components "
.
"ON bugs.component_id = map_components.id"
;
"ON bugs.component_id = map_components.id"
;
}
}
if
(
grep
(
$_
=~
/AS (actual_time|percentage_complete)$/
,
@$fieldsref
))
{
push
(
@supptables
,
"INNER JOIN longdescs AS ldtime "
.
"ON ldtime.bug_id = bugs.bug_id"
);
}
my
$minvotes
;
my
$minvotes
;
if
(
defined
$params
->
param
(
'votes'
))
{
if
(
defined
$params
->
param
(
'votes'
))
{
...
@@ -218,11 +223,6 @@ sub init {
...
@@ -218,11 +223,6 @@ sub init {
push
(
@specialchart
,
[
"keywords"
,
$t
,
$params
->
param
(
'keywords'
)]);
push
(
@specialchart
,
[
"keywords"
,
$t
,
$params
->
param
(
'keywords'
)]);
}
}
if
(
lsearch
(
$fieldsref
,
"(SUM(ldtime.work_time)*COUNT(DISTINCT ldtime.bug_when)/COUNT(bugs.bug_id)) AS actual_time"
)
!=
-
1
)
{
push
(
@supptables
,
"INNER JOIN longdescs AS ldtime "
.
"ON ldtime.bug_id = bugs.bug_id"
);
}
foreach
my
$id
(
"1"
,
"2"
)
{
foreach
my
$id
(
"1"
,
"2"
)
{
if
(
!
defined
(
$params
->
param
(
"email$id"
)))
{
if
(
!
defined
(
$params
->
param
(
"email$id"
)))
{
next
;
next
;
...
...
buglist.cgi
View file @
82787bc9
...
@@ -733,7 +733,15 @@ foreach my $fragment (split(/,/, $order)) {
...
@@ -733,7 +733,15 @@ foreach my $fragment (split(/,/, $order)) {
# Add order columns to selectnames
# Add order columns to selectnames
# The fragment has already been validated
# The fragment has already been validated
$fragment
=~
s/\s+(asc|desc)$//
;
$fragment
=~
s/\s+(asc|desc)$//
;
$fragment
=~
tr
/a-zA-Z\.0-9\-_/
/
cd
;
# This fixes an issue where columns being used in the ORDER BY statement
# can have the SQL that generates the value changed to become invalid -
# mainly affects time tracking.
if
(
$fragment
=~
/ AS (\w+)/
)
{
$fragment
=
$columns
->
{
$1
}
->
{
'name'
};
}
else
{
$fragment
=~
tr
/a-zA-Z\.0-9\-_/
/
cd
;
}
push
@selectnames
,
$fragment
;
push
@selectnames
,
$fragment
;
}
}
}
}
...
@@ -881,7 +889,7 @@ while (my @row = $buglist_sth->fetchrow_array()) {
...
@@ -881,7 +889,7 @@ while (my @row = $buglist_sth->fetchrow_array()) {
# or because of human choice
# or because of human choice
my
%
min_membercontrol
;
my
%
min_membercontrol
;
if
(
@bugidlist
)
{
if
(
@bugidlist
)
{
my
$sth
=
$dbh
->
prepare
(
my
$sth
=
$dbh
->
prepare
(
"SELECT DISTINCT bugs.bug_id, MIN(group_control_map.membercontrol) "
.
"SELECT DISTINCT bugs.bug_id, MIN(group_control_map.membercontrol) "
.
"FROM bugs "
.
"FROM bugs "
.
"INNER JOIN bug_group_map "
.
"INNER JOIN bug_group_map "
.
...
...
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