summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Bug.pm
diff options
context:
space:
mode:
authorChristian Legnitto <clegnitto@mozilla.com>2010-11-03 16:33:30 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2010-11-03 16:33:30 +0100
commit476aa64420a21efc15d50857c2ebbad3fb5de6db (patch)
tree883248089fa751f7234e537227575d9735d5c1d9 /Bugzilla/Bug.pm
parenta8a6e226052b940268bd0dd8e0767d3ad516d773 (diff)
downloadbugzilla-476aa64420a21efc15d50857c2ebbad3fb5de6db.tar.gz
bugzilla-476aa64420a21efc15d50857c2ebbad3fb5de6db.tar.xz
Bug 607909: Hours worked / work_time is marked as changing when commenting even when you don't enter a value
r/a=LpSolit
Diffstat (limited to 'Bugzilla/Bug.pm')
-rw-r--r--Bugzilla/Bug.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm
index e005b05c5..f5b092800 100644
--- a/Bugzilla/Bug.pm
+++ b/Bugzilla/Bug.pm
@@ -895,8 +895,8 @@ sub update {
# timestamp.
$comment->{bug_when} = $delta_ts;
$comment = Bugzilla::Comment->insert_create_data($comment);
- if ($comment->{work_time}) {
- LogActivityEntry($self->id, "work_time", "", $comment->{work_time},
+ if ($comment->work_time) {
+ LogActivityEntry($self->id, "work_time", "", $comment->work_time,
Bugzilla->user->id, $delta_ts);
}
}