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
770ba88b
Commit
770ba88b
authored
Feb 07, 2007
by
olav%bkor.dhs.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 366629: Bugmail messed up if adding dependency for resolved bug in new bug
Patch by Olav Vitters <olav@bkor.dhs.org> r=LpSolit a=LpSolit
parent
121badd2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
BugMail.pm
Bugzilla/BugMail.pm
+16
-4
No files found.
Bugzilla/BugMail.pm
View file @
770ba88b
...
...
@@ -215,6 +215,7 @@ sub Send {
$when_restriction
ORDER BY bugs_activity.bug_when"
,
undef
,
@args
);
my
@new_depbugs
;
my
$difftext
=
""
;
my
$diffheader
=
""
;
my
@diffparts
;
...
...
@@ -238,6 +239,9 @@ sub Send {
$old
=
format_time_decimal
(
$old
);
$new
=
format_time_decimal
(
$new
);
}
if
(
$fieldname
eq
'dependson'
)
{
push
(
@new_depbugs
,
grep
{
$_
=~
/^\d+$/
}
split
(
/[\s,]+/
,
$new
));
}
if
(
$attachid
)
{
(
$diffpart
->
{
'isprivate'
})
=
$dbh
->
selectrow_array
(
'SELECT isprivate FROM attachments WHERE attach_id = ?'
,
...
...
@@ -252,7 +256,17 @@ sub Send {
}
$values
{
'changed_fields'
}
=
join
(
' '
,
@changedfields
);
my
@depbugs
;
my
$deptext
=
""
;
# Do not include data about dependent bugs when they have just been added.
# Completely skip checking for dependent bugs on bug creation as all
# dependencies bugs will just have been added.
if
(
$start
)
{
my
$dep_restriction
=
""
;
if
(
scalar
@new_depbugs
)
{
$dep_restriction
=
"AND bugs_activity.bug_id NOT IN ("
.
join
(
", "
,
@new_depbugs
)
.
")"
;
}
my
$dependency_diffs
=
$dbh
->
selectall_arrayref
(
"SELECT bugs_activity.bug_id, bugs.short_desc, fielddefs.name,
...
...
@@ -268,12 +282,12 @@ sub Send {
AND (fielddefs.name = 'bug_status'
OR fielddefs.name = 'resolution')
$when_restriction
$dep_restriction
ORDER BY bugs_activity.bug_when, bugs.bug_id"
,
undef
,
@args
);
my
$thisdiff
=
""
;
my
$lastbug
=
""
;
my
$interestingchange
=
0
;
my
@depbugs
;
foreach
my
$dependency_diff
(
@$dependency_diffs
)
{
my
(
$depbug
,
$summary
,
$what
,
$old
,
$new
)
=
@$dependency_diff
;
...
...
@@ -297,14 +311,12 @@ sub Send {
{
$interestingchange
=
1
;
}
push
(
@depbugs
,
$depbug
);
}
if
(
$interestingchange
)
{
$deptext
.=
$thisdiff
;
}
$deptext
=
trim
(
$deptext
);
if
(
$deptext
)
{
...
...
@@ -312,7 +324,7 @@ sub Send {
$diffpart
->
{
'text'
}
=
"\n"
.
trim
(
"\n\n"
.
$deptext
);
push
(
@diffparts
,
$diffpart
);
}
}
my
(
$raw_comments
,
$anyprivate
,
$count
)
=
get_comments_by_bug
(
$id
,
$start
,
$end
);
...
...
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