aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-04-28 01:12:22 +0200
committerMatěj Cepl <mcepl@redhat.com>2011-04-28 01:12:22 +0200
commitf651df701f052f7836f29cd305a361bbee502653 (patch)
treef95a88cc6674d609abe1e8e49d15192d0c4cdd39 /lib
parente53a0306d13924509b1be2085028a4213d861a20 (diff)
downloadbugzilla-triage-f651df701f052f7836f29cd305a361bbee502653.tar.gz
Allow working with the log record without a comment.
Fixes #71
Diffstat (limited to 'lib')
-rw-r--r--lib/logger.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/logger.js b/lib/logger.js
index dce3bad..ce96f69 100644
--- a/lib/logger.js
+++ b/lib/logger.js
@@ -24,8 +24,8 @@ exports.initialize = function initialize(aMap) {
};
exports.addLogRecord = function addLogRecord(rec) {
- if (myStorage.storage.logs[rec.key]) {
- myStorage.storage.logs[rec.key].comment += "<br/>\n" + comment;
+ if (myStorage.storage.logs[rec.key] && myStorage.storage.logs[rec.key].comment) {
+ myStorage.storage.logs[rec.key].comment += "<br/>\n" + rec.comment;
}
else {
myStorage.storage.logs[rec.key] = rec;