Fossil SCM
Always include a report number parameter into the report's "Raw" link (at the top of the /rptview page). This fixes the glitch for the case when the report number is "hidden" within [/waliassetup|URL alias].
Commit
bed4b0f7fc586f993e9abacbb11ddc10190531f74929f345b87487d3040f4fd5
Parent
f4af604aa56c0ed…
1 file changed
+1
-1
+1
-1
| --- src/report.c | ||
| +++ src/report.c | ||
| @@ -1032,11 +1032,11 @@ | ||
| 1032 | 1032 | if( !tabs ){ |
| 1033 | 1033 | struct GenerateHTML sState = { 0, 0, 0, 0, 0, 0, 0, 0, 0 }; |
| 1034 | 1034 | |
| 1035 | 1035 | db_multi_exec("PRAGMA empty_result_callbacks=ON"); |
| 1036 | 1036 | style_set_current_feature("report"); |
| 1037 | - style_submenu_element("Raw", "rptview?tablist=1&%h", PD("QUERY_STRING","")); | |
| 1037 | + style_submenu_element("Raw", "rptview?tablist=1&rn=%d&%h", rn, PD("QUERY_STRING","") ); | |
| 1038 | 1038 | if( g.perm.Admin |
| 1039 | 1039 | || (g.perm.TktFmt && g.zLogin && fossil_strcmp(g.zLogin,zOwner)==0) ){ |
| 1040 | 1040 | style_submenu_element("Edit", "rptedit?rn=%d", rn); |
| 1041 | 1041 | } |
| 1042 | 1042 | if( g.perm.TktFmt ){ |
| 1043 | 1043 |
| --- src/report.c | |
| +++ src/report.c | |
| @@ -1032,11 +1032,11 @@ | |
| 1032 | if( !tabs ){ |
| 1033 | struct GenerateHTML sState = { 0, 0, 0, 0, 0, 0, 0, 0, 0 }; |
| 1034 | |
| 1035 | db_multi_exec("PRAGMA empty_result_callbacks=ON"); |
| 1036 | style_set_current_feature("report"); |
| 1037 | style_submenu_element("Raw", "rptview?tablist=1&%h", PD("QUERY_STRING","")); |
| 1038 | if( g.perm.Admin |
| 1039 | || (g.perm.TktFmt && g.zLogin && fossil_strcmp(g.zLogin,zOwner)==0) ){ |
| 1040 | style_submenu_element("Edit", "rptedit?rn=%d", rn); |
| 1041 | } |
| 1042 | if( g.perm.TktFmt ){ |
| 1043 |
| --- src/report.c | |
| +++ src/report.c | |
| @@ -1032,11 +1032,11 @@ | |
| 1032 | if( !tabs ){ |
| 1033 | struct GenerateHTML sState = { 0, 0, 0, 0, 0, 0, 0, 0, 0 }; |
| 1034 | |
| 1035 | db_multi_exec("PRAGMA empty_result_callbacks=ON"); |
| 1036 | style_set_current_feature("report"); |
| 1037 | style_submenu_element("Raw", "rptview?tablist=1&rn=%d&%h", rn, PD("QUERY_STRING","") ); |
| 1038 | if( g.perm.Admin |
| 1039 | || (g.perm.TktFmt && g.zLogin && fossil_strcmp(g.zLogin,zOwner)==0) ){ |
| 1040 | style_submenu_element("Edit", "rptedit?rn=%d", rn); |
| 1041 | } |
| 1042 | if( g.perm.TktFmt ){ |
| 1043 |