[MGNLUI-6862] LinkField does not store plain text for the second language Created: 06/Sep/21  Updated: 13/Sep/21  Resolved: 10/Sep/21

Status: Closed
Project: Magnolia UI
Component/s: dialogs
Affects Version/s: 6.2.11
Fix Version/s: 6.2.12

Type: Bug Priority: Neutral
Reporter: Carlos Cantalapiedra Assignee: Roman Kovařík
Resolution: Fixed Votes: 0
Labels: VN-Testing, maintenance, ui-team-support
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File english-text.png     PNG File german-page.png    
Issue Links:
Problem/Incident
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[X]* Steps to reproduce, expected, and actual results filled
[X]* Affected version filled
Release notes required:
Yes
Date of First Response:
Sprint: UI FW 36

 Description   

Steps to reproduce

  1. Create a component of type , e.g:
    myLinkComponent.yaml
     
    form:
     properties:
     link:
     label: "My Link"
     $type: pageLinkField
     showOptions: false
     textInputAllowed: true
     i18n: true
    
  2. On the Pages-app, create a new page and on the main area, add the component created on the previous step
  3.  With the English language selected, insert at the textfield one value (e.g, http://www.google.com)
  4. Switch to German and insert other text (e.g, http://www.google.de)
  5. Save the dialog
  6. Check only English value has been saved. The German value is missing

Expected results

Both, English and German values are saved and shown on the textField

Actual results

Only English value is saved. The field for German language is empty

Workaround

Change an other i18n field value in the german language.

Development notes

It only happens when introducing text. If you switch to German language and select a page, then the value is properly saved. Check attachments.
The issue has changed a little with MGNLUI-6857. Only the last selected language is saved (Without MGNLUI-6857, only the default language is saved)



 Comments   
Comment by Roman Kovařík [ 13/Sep/21 ]

For release notes:
linkField with textInputAllowed=true correctly persist text field changes (such as copy/pasted links) for all locales.

Generated at Mon Feb 12 09:40:45 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.