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
5fcfa9bb
Commit
5fcfa9bb
authored
May 14, 2010
by
Frédéric Buclin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backing out bug 271913: comments are no longer displayed, see also bug 565794
parent
475abdfc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
Bug.pm
Bugzilla/Bug.pm
+6
-2
comments.html.tmpl
template/en/default/bug/comments.html.tmpl
+0
-2
No files found.
Bugzilla/Bug.pm
View file @
5fcfa9bb
...
...
@@ -2245,7 +2245,11 @@ sub add_comment {
$comment
=
$self
->
_check_comment
(
$comment
);
$params
||=
{};
$params
->
{
work_time
}
=
$self
->
_check_work_time
(
$params
->
{
work_time
});
if
(
exists
$params
->
{
work_time
})
{
$params
->
{
work_time
}
=
$self
->
_check_work_time
(
$params
->
{
work_time
});
ThrowUserError
(
'comment_required'
)
if
$comment
eq
''
&&
$params
->
{
work_time
}
!=
0
;
}
if
(
exists
$params
->
{
type
})
{
$params
->
{
type
}
=
$self
->
_check_comment_type
(
$params
->
{
type
});
}
...
...
@@ -2255,7 +2259,7 @@ sub add_comment {
}
# XXX We really should check extra_data, too.
if
(
$comment
eq
''
&&
!
(
$params
->
{
type
}
||
abs
(
$params
->
{
work_time
})
))
{
if
(
$comment
eq
''
&&
!
(
$params
->
{
type
}
||
$params
->
{
work_time
}
))
{
return
;
}
...
...
template/en/default/bug/comments.html.tmpl
View file @
5fcfa9bb
...
...
@@ -94,7 +94,6 @@
[% DEFAULT start_at = 0 mode = "show" %]
[% timetracking_only = (comment_body == '' && comment.work_time != 0) %]
[% sort_order = user.settings.comment_sort_order.value %]
[%# NOTE: (start_at > 0) means we came here from a midair collision,
...
...
@@ -158,7 +157,6 @@
[% BLOCK a_comment %]
[% RETURN IF comment.is_private AND ! user.is_insider %]
[% RETURN IF timetracking_only AND !user.is_timetracker %]
<div id="c[% count %]" class="bz_comment[% " bz_private" IF comment.is_private %]
[% " bz_comment_hilite" IF marks.$count %]
...
...
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