Fossil SCM
When deleting a brand new ticket that was pending moderation, eliminate TH1 script errors about the missing '$tkt_uuid' variable.
Commit
a21d475e014893cd9335c5ffc9bf1178338bd135
Parent
3d2690a9761fe54…
1 file changed
+13
-4
+13
-4
| --- src/tktsetup.c | ||
| +++ src/tktsetup.c | ||
| @@ -435,15 +435,24 @@ | ||
| 435 | 435 | |
| 436 | 436 | static const char zDefaultView[] = |
| 437 | 437 | @ <table cellpadding="5"> |
| 438 | 438 | @ <tr><td class="tktDspLabel">Ticket UUID:</td> |
| 439 | 439 | @ <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 | +@ } | |
| 443 | 447 | @ } 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 | +@ } | |
| 445 | 454 | @ } |
| 446 | 455 | @ </th1> |
| 447 | 456 | @ <tr><td class="tktDspLabel">Title:</td> |
| 448 | 457 | @ <td class="tktDspValue" colspan="3"> |
| 449 | 458 | @ $<title> |
| 450 | 459 |
| --- 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 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 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 |