Fossil SCM

Correctly show the edited and original comments on the /info page for check-ins. Fixes a bug spotted by Stephan Beal.

drh 2018-01-21 22:59 UTC trunk
Commit f5bcc25ac08b1512194508f1cd4042f1f5388ff163704edae120865149911730
1 file changed +2 -1
+2 -1
--- src/info.c
+++ src/info.c
@@ -695,11 +695,12 @@
695695
zDate = db_column_text(&q1,1);
696696
zOrigDate = db_column_text(&q1, 4);
697697
if( zOrigDate==0 ) zOrigDate = zDate;
698698
@ <div class="section">Overview</div>
699699
@ <table class="label-value">
700
- @ <tr><th>Comment:</th><td class="infoComment">%!W(zComment)</td></tr>
700
+ @ <tr><th>Comment:</th><td class="infoComment">\
701
+ @ %!W(zEComment?zEComment:zComment)</td></tr>
701702
702703
/* The Download: line */
703704
if( g.perm.Zip ){
704705
char *zPJ = db_get("short-project-name", 0);
705706
char *zUrl;
706707
--- src/info.c
+++ src/info.c
@@ -695,11 +695,12 @@
695 zDate = db_column_text(&q1,1);
696 zOrigDate = db_column_text(&q1, 4);
697 if( zOrigDate==0 ) zOrigDate = zDate;
698 @ <div class="section">Overview</div>
699 @ <table class="label-value">
700 @ <tr><th>Comment:</th><td class="infoComment">%!W(zComment)</td></tr>
 
701
702 /* The Download: line */
703 if( g.perm.Zip ){
704 char *zPJ = db_get("short-project-name", 0);
705 char *zUrl;
706
--- src/info.c
+++ src/info.c
@@ -695,11 +695,12 @@
695 zDate = db_column_text(&q1,1);
696 zOrigDate = db_column_text(&q1, 4);
697 if( zOrigDate==0 ) zOrigDate = zDate;
698 @ <div class="section">Overview</div>
699 @ <table class="label-value">
700 @ <tr><th>Comment:</th><td class="infoComment">\
701 @ %!W(zEComment?zEComment:zComment)</td></tr>
702
703 /* The Download: line */
704 if( g.perm.Zip ){
705 char *zPJ = db_get("short-project-name", 0);
706 char *zUrl;
707

Keyboard Shortcuts

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