Fossil SCM
Call ticket_init() from the report view so users can have access to all the common ticket code
Commit
6d0b76d01f85150e99c2c326b11276571c885584
Parent
14253e9b3336a62…
1 file changed
+1
+1
| --- src/report.c | ||
| +++ src/report.c | ||
| @@ -47,10 +47,11 @@ | ||
| 47 | 47 | if( g.thTrace ) Th_Trace("BEGIN_REPORTLIST<br />\n", -1); |
| 48 | 48 | zScript = ticket_reportlist_code(); |
| 49 | 49 | if( g.thTrace ) Th_Trace("BEGIN_REPORTLIST_SCRIPT<br />\n", -1); |
| 50 | 50 | |
| 51 | 51 | blob_zero(&ril); |
| 52 | + ticket_init(); | |
| 52 | 53 | |
| 53 | 54 | db_prepare(&q, "SELECT rn, title, owner FROM reportfmt ORDER BY title"); |
| 54 | 55 | while( db_step(&q)==SQLITE_ROW ){ |
| 55 | 56 | const char *zTitle = db_column_text(&q, 1); |
| 56 | 57 | const char *zOwner = db_column_text(&q, 2); |
| 57 | 58 |
| --- src/report.c | |
| +++ src/report.c | |
| @@ -47,10 +47,11 @@ | |
| 47 | if( g.thTrace ) Th_Trace("BEGIN_REPORTLIST<br />\n", -1); |
| 48 | zScript = ticket_reportlist_code(); |
| 49 | if( g.thTrace ) Th_Trace("BEGIN_REPORTLIST_SCRIPT<br />\n", -1); |
| 50 | |
| 51 | blob_zero(&ril); |
| 52 | |
| 53 | db_prepare(&q, "SELECT rn, title, owner FROM reportfmt ORDER BY title"); |
| 54 | while( db_step(&q)==SQLITE_ROW ){ |
| 55 | const char *zTitle = db_column_text(&q, 1); |
| 56 | const char *zOwner = db_column_text(&q, 2); |
| 57 |
| --- src/report.c | |
| +++ src/report.c | |
| @@ -47,10 +47,11 @@ | |
| 47 | if( g.thTrace ) Th_Trace("BEGIN_REPORTLIST<br />\n", -1); |
| 48 | zScript = ticket_reportlist_code(); |
| 49 | if( g.thTrace ) Th_Trace("BEGIN_REPORTLIST_SCRIPT<br />\n", -1); |
| 50 | |
| 51 | blob_zero(&ril); |
| 52 | ticket_init(); |
| 53 | |
| 54 | db_prepare(&q, "SELECT rn, title, owner FROM reportfmt ORDER BY title"); |
| 55 | while( db_step(&q)==SQLITE_ROW ){ |
| 56 | const char *zTitle = db_column_text(&q, 1); |
| 57 | const char *zOwner = db_column_text(&q, 2); |
| 58 |