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].

george 2021-03-24 04:25 trunk
Commit bed4b0f7fc586f993e9abacbb11ddc10190531f74929f345b87487d3040f4fd5
1 file changed +1 -1
+1 -1
--- src/report.c
+++ src/report.c
@@ -1032,11 +1032,11 @@
10321032
if( !tabs ){
10331033
struct GenerateHTML sState = { 0, 0, 0, 0, 0, 0, 0, 0, 0 };
10341034
10351035
db_multi_exec("PRAGMA empty_result_callbacks=ON");
10361036
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","") );
10381038
if( g.perm.Admin
10391039
|| (g.perm.TktFmt && g.zLogin && fossil_strcmp(g.zLogin,zOwner)==0) ){
10401040
style_submenu_element("Edit", "rptedit?rn=%d", rn);
10411041
}
10421042
if( g.perm.TktFmt ){
10431043
--- 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

Keyboard Shortcuts

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