stable

Clone or download

Read-only

Prevent user to download document when no artifact

Part of request #11504: Download list of artifacts as a single page document When there is no matching artifacts in a table report, there should be an error modal instead of downloading the document. If you hack the url, then an error feedback is displayed. Change-Id: I14f85e02992c21fba1d129dcab68360f7f3548b3

Modified Files

Name
A plugins/textualreport/include/TextualReport/DocumentCanBeDownloadedChecker.php +33 −0 Go to diff View file
M plugins/textualreport/include/TextualReport/ExportOptionsMenuItemsAppender.php +22 −3 Go to diff View file
M plugins/textualreport/include/textualreportPlugin.class.php +22 −1 Go to diff View file
M plugins/textualreport/site-content/fr_FR/LC_MESSAGES/tuleap-textualreport.po +10 −0 Go to diff View file
M plugins/textualreport/site-content/tuleap-textualreport.pot +8 −0 Go to diff View file
A plugins/textualreport/templates/error-modal.mustache +31 −0 Go to diff View file
M plugins/textualreport/templates/export-options-menu-items.mustache +8 −2 Go to diff View file
M plugins/tracker/include/Tracker/Report/Renderer/Table/GetExportOptionsMenuItemsEvent.php +15 −0 Go to diff View file
M plugins/tracker/include/Tracker/Report/Tracker_Report_Renderer_Table.class.php +1 −0 Go to diff View file