Fossil SCM

remove the delete submenu from /rptedit, as it doesn't work anyway because the CSRF check only allows POST requests

jkosche 2025-04-08 22:57 tkt-improvements
Commit 7c91416166a7ecbb32f5ad55401226edebfdd33ed74db8cef8c61acd8871964e
1 file changed -3
--- src/report.c
+++ src/report.c
@@ -583,13 +583,10 @@
583583
zOwner = g.zLogin;
584584
}
585585
}
586586
if( zOwner==0 ) zOwner = g.zLogin;
587587
style_submenu_element("Cancel", "%R/reportlist");
588
- if( rn>0 ){
589
- style_submenu_element("Delete", "%R/rptedit/%d?del1=1", rn);
590
- }
591588
style_header("%s", rn>0 ? "Edit Report Format":"Create New Report Format");
592589
if( zErr ){
593590
@ <blockquote class="reportError">%h(zErr)</blockquote>
594591
}
595592
@ <form action="rptedit" method="post"><div>
596593
--- src/report.c
+++ src/report.c
@@ -583,13 +583,10 @@
583 zOwner = g.zLogin;
584 }
585 }
586 if( zOwner==0 ) zOwner = g.zLogin;
587 style_submenu_element("Cancel", "%R/reportlist");
588 if( rn>0 ){
589 style_submenu_element("Delete", "%R/rptedit/%d?del1=1", rn);
590 }
591 style_header("%s", rn>0 ? "Edit Report Format":"Create New Report Format");
592 if( zErr ){
593 @ <blockquote class="reportError">%h(zErr)</blockquote>
594 }
595 @ <form action="rptedit" method="post"><div>
596
--- src/report.c
+++ src/report.c
@@ -583,13 +583,10 @@
583 zOwner = g.zLogin;
584 }
585 }
586 if( zOwner==0 ) zOwner = g.zLogin;
587 style_submenu_element("Cancel", "%R/reportlist");
 
 
 
588 style_header("%s", rn>0 ? "Edit Report Format":"Create New Report Format");
589 if( zErr ){
590 @ <blockquote class="reportError">%h(zErr)</blockquote>
591 }
592 @ <form action="rptedit" method="post"><div>
593

Keyboard Shortcuts

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