stable

Clone or download

Read-only

Fix fatal error when reaching an invalid milestone

Instead of building a pane for a non existing artifact, we should display an error instead. To test, go to the details pane of a valid milestone, look at the url, and change aid= parameter value to an unexisting artifact, or -1. => you are redirected to the top planning of the project, with an error message. You can also hack the redirection url that is used to link a backlog item to the milestone, for example from the details pane: planning[details][1]=:fake_id_milestone&link-to-milestone=1 Note: this allows us to remove the last bit of dead code that was removed in git #tuleap/stable/54e1d75df04c23057343679ff102f8c8e5939723 [0] Part of story #16206: ยซ + New ยป button, better contextualisation [0] https://gerrit.tuleap.net/c/tuleap/+/20968 Change-Id: I991d4575927546d264a791c062a92a664902de83

Modified Files

Name
M plugins/agiledashboard/include/AgileDashboard/Artifact/EventRedirectAfterArtifactCreationOrUpdateHandler.php +3 โˆ’0 Go to diff View file
M plugins/agiledashboard/include/AgileDashboardRouter.class.php +0 โˆ’3 Go to diff View file
M plugins/agiledashboard/include/Planning/MilestoneController.class.php +4 โˆ’0 Go to diff View file
M plugins/agiledashboard/site-content/fr_FR/LC_MESSAGES/tuleap-agiledashboard.po +3 โˆ’0 Go to diff View file
M plugins/agiledashboard/tests/unit/AgileDashboard/Artifact/EventRedirectAfterArtifactCreationOrUpdateHandlerTest.php +61 โˆ’2 Go to diff View file