diff options
author | Matěj Cepl <mcepl@redhat.com> | 2011-04-28 01:12:22 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2011-04-28 01:12:22 +0200 |
commit | f651df701f052f7836f29cd305a361bbee502653 (patch) | |
tree | f95a88cc6674d609abe1e8e49d15192d0c4cdd39 /lib | |
parent | e53a0306d13924509b1be2085028a4213d861a20 (diff) | |
download | bugzilla-triage-f651df701f052f7836f29cd305a361bbee502653.tar.gz |
Allow working with the log record without a comment.
Fixes #71
Diffstat (limited to 'lib')
-rw-r--r-- | lib/logger.js | 4 |
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; |