Fossil SCM

When deleting a brand new ticket that was pending moderation, eliminate TH1 script errors about the missing '$tkt_uuid' variable.

mistachkin 2014-09-17 05:47 UTC trunk
Commit a21d475e014893cd9335c5ffc9bf1178338bd135
1 file changed +13 -4
+13 -4
--- src/tktsetup.c
+++ src/tktsetup.c
@@ -435,15 +435,24 @@
435435
436436
static const char zDefaultView[] =
437437
@ <table cellpadding="5">
438438
@ <tr><td class="tktDspLabel">Ticket&nbsp;UUID:</td>
439439
@ <th1>
440
-@ if {[hascap s]} {
441
-@ html "<td class='tktDspValue' colspan='3'>$tkt_uuid "
442
-@ html "($tkt_id)</td></tr>\n"
440
+@ if {[info exists tkt_uuid]} {
441
+@ if {[hascap s]} {
442
+@ html "<td class='tktDspValue' colspan='3'>$tkt_uuid "
443
+@ html "($tkt_id)</td></tr>\n"
444
+@ } else {
445
+@ html "<td class='tktDspValue' colspan='3'>$tkt_uuid</td></tr>\n"
446
+@ }
443447
@ } else {
444
-@ html "<td class='tktDspValue' colspan='3'>$tkt_uuid</td></tr>\n"
448
+@ if {[hascap s]} {
449
+@ html "<td class='tktDspValue' colspan='3'>Deleted "
450
+@ html "(0)</td></tr>\n"
451
+@ } else {
452
+@ html "<td class='tktDspValue' colspan='3'>Deleted</td></tr>\n"
453
+@ }
445454
@ }
446455
@ </th1>
447456
@ <tr><td class="tktDspLabel">Title:</td>
448457
@ <td class="tktDspValue" colspan="3">
449458
@ $<title>
450459
--- src/tktsetup.c
+++ src/tktsetup.c
@@ -435,15 +435,24 @@
435
436 static const char zDefaultView[] =
437 @ <table cellpadding="5">
438 @ <tr><td class="tktDspLabel">Ticket&nbsp;UUID:</td>
439 @ <th1>
440 @ if {[hascap s]} {
441 @ html "<td class='tktDspValue' colspan='3'>$tkt_uuid "
442 @ html "($tkt_id)</td></tr>\n"
 
 
 
 
443 @ } else {
444 @ html "<td class='tktDspValue' colspan='3'>$tkt_uuid</td></tr>\n"
 
 
 
 
 
445 @ }
446 @ </th1>
447 @ <tr><td class="tktDspLabel">Title:</td>
448 @ <td class="tktDspValue" colspan="3">
449 @ $<title>
450
--- src/tktsetup.c
+++ src/tktsetup.c
@@ -435,15 +435,24 @@
435
436 static const char zDefaultView[] =
437 @ <table cellpadding="5">
438 @ <tr><td class="tktDspLabel">Ticket&nbsp;UUID:</td>
439 @ <th1>
440 @ if {[info exists tkt_uuid]} {
441 @ if {[hascap s]} {
442 @ html "<td class='tktDspValue' colspan='3'>$tkt_uuid "
443 @ html "($tkt_id)</td></tr>\n"
444 @ } else {
445 @ html "<td class='tktDspValue' colspan='3'>$tkt_uuid</td></tr>\n"
446 @ }
447 @ } else {
448 @ if {[hascap s]} {
449 @ html "<td class='tktDspValue' colspan='3'>Deleted "
450 @ html "(0)</td></tr>\n"
451 @ } else {
452 @ html "<td class='tktDspValue' colspan='3'>Deleted</td></tr>\n"
453 @ }
454 @ }
455 @ </th1>
456 @ <tr><td class="tktDspLabel">Title:</td>
457 @ <td class="tktDspValue" colspan="3">
458 @ $<title>
459

Keyboard Shortcuts

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