[MGNLUI-6419] Choose dialog in legacy apps is not selecting the selected item Created: 20/Nov/20  Updated: 13/Jan/21  Resolved: 12/Jan/21

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: None
Fix Version/s: 6.2.6

Type: Bug Priority: Neutral
Reporter: Mercedes Iruela Assignee: Oanh Thai Hoang
Resolution: Fixed Votes: 1
Labels: maintenance
Remaining Estimate: 10m
Time Spent: 1d 2h 20m
Original Estimate: Not Specified

Attachments: PNG File Screenshot 2020-11-20 at 15.36.29.png    
Issue Links:
Relates
relates to MGNLUI-6504 Choosing dialog in old ui framework w... Open
duplicate
duplicates MGNLUI-6423 Legacy asset chooser doesn't show cur... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Release notes required:
Yes
Epic Link: UI framework implementation
Sprint: Maintenance 39
Story Points: 5

 Description   

Steps to reproduce

Case 1: Stories app

  1.  Go to stories app
  2.  Open lost-and-found-in-swiss-alps
  3. Go to the image block and click on Browse buttom

Case 2: Tours app (and others apps using the legacy UI and the old linkfield: info.magnolia.ui.form.field.definition.LinkFieldDefinition)

  1.  Go to tours app
  2.  Open Vietnam: Tradition and Today tour
  3. Go to the image and click on Browse buttom

Expected results

The choose dialog is opened, the image appears in the preview side, the image appears selected directly and the focus allows us to see where the picture is without need to scroll.
If it is not a linkfield pointing to an image, then the item should be selected and it should appear in view (not need to scroll).

Actual results

The preview is displayed, however the picture is not selected.
In case of a linkfield to other workspace different from dam, the item is not selected so we cannot know what item is the selected one.

Workaround

N/A

Development notes

Issue seems related to the compatibility mode. When info.magnolia.ui.form.field.definition.LinkFieldDefinition is used. Another example can be found in Legacy pages app when info.magnolia.ui.form.field.definition.LinkFieldDefinition is used, for instance, text and image component.



 Comments   
Comment by Mercedes Iruela [ 24/Nov/20 ]

another example:

  1. enable legacy pages app in ui-admincentral config
  2. got o https://demoauthor.magnolia-cms.com/.magnolia/admincentral#app:pages:detail;/travel/about:edit
  3. reference an image from dam in any component and save
  4. reopen the component dialog and click on 'Select another'
Generated at Mon Feb 12 09:36:15 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.