stable

Clone or download

Read-only

Fix current pane for references pane

Part of story #10061 new project admin homepage and navigation When you go to project ยป admin ยป references and you try to add or edit a reference, then the tab "References" should be active. We should not rely on a url parameter to know if a pane is selected or not. As soon as we enter in the labels controller or the references controller, we know that we are in the corresponding tab. Using an url parameter is bad because it induces duplication and is error prone. This commit applies this approach only for burning parrot pages, and for references administration. Changing the pattern for every flaming parrot pages would clutter too much the review, therefore we must let a default parameter in project_admin_header() until we fix other pages :/ Change-Id: I55c7a2b8720108d92466eaaf8dac4d8aadf79725

Modified Files

Name
M src/common/project/Admin/Navigation/HeaderNavigationDisplayer.php +6 โˆ’6 Go to diff View file
M src/common/project/Admin/Navigation/NavigationPresenterBuilder.php +6 โˆ’5 Go to diff View file
M src/common/project/Admin/ProjectDetails/ProjectDetailsController.php +1 โˆ’1 Go to diff View file
M src/common/project/Label/IndexController.php +1 โˆ’1 Go to diff View file
M src/www/project/admin/include/ReferenceAdministrationViews.class.php +8 โˆ’3 Go to diff View file
M src/www/project/admin/index.php +1 โˆ’2 Go to diff View file
M src/www/project/admin/project_admin_utils.php +2 โˆ’2 Go to diff View file