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
b567f425
Commit
b567f425
authored
Feb 16, 2001
by
cyeh%bluemartini.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for 28676 :
When a bug is marked duplicate, the reporter should be added to the bug that it duplicated. patch submitted by jake@acutex.net (Jake).
parent
10ad2870
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
process_bug.cgi
process_bug.cgi
+22
-0
No files found.
process_bug.cgi
View file @
b567f425
...
...
@@ -545,6 +545,28 @@ SWITCH: for ($::FORM{'knob'}) {
PuntTryAgain
(
"The bug id $::FORM{'id'} is invalid. Please reload this bug "
.
"and try again."
);
}
# Check to see if Reporter of this bug is reporter of Dupe
SendSQL
(
"SELECT reporter FROM bugs WHERE bug_id = "
.
SqlQuote
(
$::FORM
{
'id'
}));
my
$reporter
=
FetchOneColumn
();
SendSQL
(
"SELECT reporter FROM bugs WHERE bug_id = "
.
SqlQuote
(
$num
)
.
" and reporter = $reporter"
);
my
$isreporter
=
FetchOneColumn
();
SendSQL
(
"SELECT who FROM cc WHERE bug_id = "
.
SqlQuote
(
$num
)
.
" and who = $reporter"
);
my
$isoncc
=
FetchOneColumn
();
unless
(
$isreporter
||
$isoncc
)
{
# The reporter is oblivious to the existance of the new bug... add 'em to the cc (and record activity)
SendSQL
(
"SELECT who FROM cc WHERE bug_id = "
.
SqlQuote
(
$num
));
my
@dupecc
;
while
(
MoreSQLData
())
{
push
(
@dupecc
,
DBID_to_name
(
FetchOneColumn
()));
}
my
@newdupecc
=
@dupecc
;
push
(
@newdupecc
,
DBID_to_name
(
$reporter
));
my
$ccid
=
GetFieldID
(
"cc"
);
my
$whochange
=
DBNameToIdAndCheck
(
$::FORM
{
'who'
});
SendSQL
(
"INSERT INTO bugs_activity (bug_id,who,bug_when,fieldid,oldvalue,newvalue) VALUES "
.
"('$num','$whochange',now(),$ccid,'"
.
join
(
","
,
sort
@dupecc
)
.
"','"
.
join
(
","
,
sort
@newdupecc
)
.
"')"
);
SendSQL
(
"INSERT INTO cc (who, bug_id) VALUES ($reporter, "
.
SqlQuote
(
$num
)
.
")"
);
}
AppendComment
(
$num
,
$::FORM
{
'who'
},
"*** Bug $::FORM{'id'} has been marked as a duplicate of this bug. ***"
);
if
(
Param
(
'strictvaluechecks'
)
)
{
CheckFormFieldDefined
(
\%::
FORM
,
'comment'
);
...
...
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