URI fragment, views and actionbar should always be in sync (MGNLUI-315)

[MGNLUI-313] Unselecting an item should restore the selected item id to its default value Created: 03/Dec/12  Updated: 11/Feb/13  Resolved: 31/Dec/12

Status: Closed
Project: Magnolia UI
Component/s: tree/list
Affects Version/s: 5.0
Fix Version/s: 5.0

Type: Sub-task Priority: Critical
Reporter: Federico Grilli Assignee: Samuli Penttilä
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Date of First Response:

 Description   

Currently unselecting an item int the tree or list always reset the default to "/" (root). That value should instead be retrieved from info.magnolia.ui.model.workbench.definition.WorkbenchDefinition.getPath() because there are cases, such as the security app, where we do not want to operate directly under root.



 Comments   
Comment by Samuli Penttilä [ 20/Dec/12 ]

Fixed by taking default value from workbench definition.

Comment by Samuli Penttilä [ 20/Dec/12 ]

Changeset https://git.magnolia-cms.com/gitweb/?p=magnolia_ui.git;a=commitdiff;h=59bdd110722d67d46ed0b83bb37a152940db76c9

Comment by Federico Grilli [ 21/Dec/12 ]

Reopened after review.
Please

  • write a unit test to ensure that after calling ContentPresenter#onItemSelection with a null item
    ContentPresenter#getSelectedItemPath() returns the path configured in the workbench def.
  • remove unused private field isSystemUserSubApp in SecurityUsersSubApp
Comment by Samuli Penttilä [ 31/Dec/12 ]

Fixed according to review. https://git.magnolia-cms.com/gitweb/?p=magnolia_ui.git;a=commitdiff;h=1ce2bf09449c12f4f7454086f53a5176d893f304

Generated at Mon Feb 12 08:35:39 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.