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
bbb41a57
Commit
bbb41a57
authored
Apr 09, 2003
by
burnus%gmx.de
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 71790 - Duplicate resolution field should include bug number of original
r=bbaetz,a=justdave
parent
1b071f06
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
2 deletions
+43
-2
Bug.pm
Bug.pm
+18
-0
Bug.pm
Bugzilla/Bug.pm
+18
-0
Template.pm
Bugzilla/Template.pm
+1
-1
edit.html.tmpl
template/en/default/bug/edit.html.tmpl
+6
-1
No files found.
Bug.pm
View file @
bbb41a57
...
...
@@ -262,6 +262,24 @@ sub initBug {
return
$self
;
}
sub
dup_id
{
my
(
$self
)
=
@_
;
return
$self
->
{
'dup_id'
}
if
exists
$self
->
{
'dup_id'
};
$self
->
{
'dup_id'
}
=
undef
;
if
(
$self
->
{
'resolution'
}
eq
'DUPLICATE'
)
{
my
$dbh
=
Bugzilla
->
dbh
;
$self
->
{
'dup_id'
}
=
$dbh
->
selectrow_array
(
q{SELECT dupe_of
FROM duplicates
WHERE dupe = ?}
,
undef
,
$self
->
{
'bug_id'
});
}
return
$self
->
{
'dup_id'
};
}
sub
actual_time
{
my
(
$self
)
=
@_
;
...
...
Bugzilla/Bug.pm
View file @
bbb41a57
...
...
@@ -262,6 +262,24 @@ sub initBug {
return
$self
;
}
sub
dup_id
{
my
(
$self
)
=
@_
;
return
$self
->
{
'dup_id'
}
if
exists
$self
->
{
'dup_id'
};
$self
->
{
'dup_id'
}
=
undef
;
if
(
$self
->
{
'resolution'
}
eq
'DUPLICATE'
)
{
my
$dbh
=
Bugzilla
->
dbh
;
$self
->
{
'dup_id'
}
=
$dbh
->
selectrow_array
(
q{SELECT dupe_of
FROM duplicates
WHERE dupe = ?}
,
undef
,
$self
->
{
'bug_id'
});
}
return
$self
->
{
'dup_id'
};
}
sub
actual_time
{
my
(
$self
)
=
@_
;
...
...
Bugzilla/Template.pm
View file @
bbb41a57
...
...
@@ -217,7 +217,7 @@ sub create {
my
(
$context
,
$bug
)
=
@_
;
return
sub
{
my
$text
=
shift
;
return
&::
GetBugLink
(
$
text
,
$bug
);
return
&::
GetBugLink
(
$
bug
,
$text
);
};
},
1
...
...
template/en/default/bug/edit.html.tmpl
View file @
bbb41a57
...
...
@@ -160,7 +160,12 @@
<a href="bug_status.html">Resolution</a>:
</b>
</td>
<td>[% bug.resolution FILTER html %]</td>
<td>
[% bug.resolution FILTER html %]
[% IF bug.resolution == "DUPLICATE" %]
of [% "bug ${bug.dup_id}" FILTER bug_link(bug.dup_id) %]
[% END %]
</td>
<td> </td>
<td align="right">
...
...
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