Fossil SCM

Revise the default ticket viewer so that it omits blank comments from the User Comments section.

drh 2012-12-01 03:50 trunk
Commit ee40fcb448646ee3d651f2169e5e774db80efb7a
1 file changed +1 -1
+1 -1
--- src/tktsetup.c
+++ src/tktsetup.c
@@ -494,11 +494,11 @@
494494
@ set alwaysPlaintext [info exists plaintext]
495495
@ query {SELECT datetime(tkt_mtime) AS xdate, login AS xlogin,
496496
@ mimetype as xmimetype, icomment AS xcomment,
497497
@ username AS xusername
498498
@ FROM ticketchng
499
-@ WHERE tkt_id=$tkt_id} {
499
+@ WHERE tkt_id=$tkt_id AND length(icomment)>0} {
500500
@ if {$seenRow} {
501501
@ html "<hr>\n"
502502
@ } else {
503503
@ html "<tr><td class='tktDspLabel'>User Comments:</td></tr>\n"
504504
@ html "<tr><td colspan='5' class='tktDspValue'>\n"
505505
--- src/tktsetup.c
+++ src/tktsetup.c
@@ -494,11 +494,11 @@
494 @ set alwaysPlaintext [info exists plaintext]
495 @ query {SELECT datetime(tkt_mtime) AS xdate, login AS xlogin,
496 @ mimetype as xmimetype, icomment AS xcomment,
497 @ username AS xusername
498 @ FROM ticketchng
499 @ WHERE tkt_id=$tkt_id} {
500 @ if {$seenRow} {
501 @ html "<hr>\n"
502 @ } else {
503 @ html "<tr><td class='tktDspLabel'>User Comments:</td></tr>\n"
504 @ html "<tr><td colspan='5' class='tktDspValue'>\n"
505
--- src/tktsetup.c
+++ src/tktsetup.c
@@ -494,11 +494,11 @@
494 @ set alwaysPlaintext [info exists plaintext]
495 @ query {SELECT datetime(tkt_mtime) AS xdate, login AS xlogin,
496 @ mimetype as xmimetype, icomment AS xcomment,
497 @ username AS xusername
498 @ FROM ticketchng
499 @ WHERE tkt_id=$tkt_id AND length(icomment)>0} {
500 @ if {$seenRow} {
501 @ html "<hr>\n"
502 @ } else {
503 @ html "<tr><td class='tktDspLabel'>User Comments:</td></tr>\n"
504 @ html "<tr><td colspan='5' class='tktDspValue'>\n"
505

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button