[MGNLDAM-887] Using decorations to include a new internationalized field in the new dam app is not showing i18n options when uploading a new assets Created: 17/Sep/20  Updated: 18/Nov/21  Resolved: 05/Nov/21

Status: Closed
Project: Magnolia DAM Module
Component/s: None
Affects Version/s: 3.0.3
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Mercedes Iruela Assignee: Nguyen Phung Chi
Resolution: Not an issue Votes: 0
Labels: 623, maintenance
Remaining Estimate: Not Specified
Time Spent: 1d 3.5h
Original Estimate: Not Specified

Attachments: PNG File image-2021-03-12-08-17-40-914.png     PNG File image-2021-11-05-11-11-09-268.png     PNG File image-2021-11-05-11-16-24-257.png     PNG File image-2021-11-05-11-26-34-318.png    
Issue Links:
Relates
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
Date of First Response:
Sprint: Assets Maintenance 1
Story Points: 2

 Description   

If a new decoration is used to include a new field in the new dam app, and this field is also adding i18n=true, then when creating the new asset (Upload asset action), the dialog is not displaying the i18n options.

If the asset is opened for edition, then i18n is available in the dialog.

Steps to reproduce:

1. Decorate the dam app with the following definition (use a light module to do it):

jcrDetail:
  form:
    properties:
      vtt:
        $type: damLinkField
        i18n: true

2. Go to the new dam app and click on 'Upload asset' in the Actionbar
3. Save a new asset and open it for edition,

Expected results

When 'Upload asset' -> Dialog should show internationalization options

Actual results

When 'Upload asset' -> no internationalization options are displayed, it is needed to edit the asset to be able to internationalize the new field content.

Workaround

Edit the asset to add the internationalized content

Development notes

I wasn't able to reproduce this behaviour in the contacts app v8. My feeling is that might be related to the double decoration that dam-app has.



 Comments   
Comment by Roman Kovařík [ 12/Mar/21 ]

Can't reproduce on latest https://demo.magnolia-cms.com/.magnolia/admincentral#app:resources;/dam-app-core/apps/dam.yaml::

Here is what I did:

  1. Add i18n field https://demo.magnolia-cms.com/.magnolia/admincentral#app:resources:edit;/dam-app-jcr/dialogs/uploadAndEdit.yaml:edit
  2. Open/Close for editing https://demo.magnolia-cms.com/.magnolia/admincentral#app:resources;/dam-app-core/apps/dam.yaml:: (just to make sure the dam app definition is reloaded)

Comment by Simon Lutz [ 13/Apr/21 ]

Reopened after discussion with miruela & fgrilli

Generated at Mon Feb 12 05:04:16 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.