[MTE-46] Link component is adding 'linkType' as suffix to properties Created: 23/Sep/15  Updated: 09/Oct/15  Resolved: 09/Oct/15

Status: Closed
Project: Magnolia Templating Essentials
Component/s: ftl-templates, models
Affects Version/s: 0.6
Fix Version/s: None

Type: Bug Priority: Critical
Reporter: Jordie Diepeveen Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File linkType storage.png    
Issue Links:
causality
caused by MGNLUI-3608 CompositeTransformer is adding basePr... 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
Date of First Response:

 Description   

When using the link component, the fields linkType and linkTypeinternal are stored as 'linkTypelinkType' and 'linkTypeinternallinkType'.
The displaying of the field in the dialog is working, but the rendering is broken because the fields cannot be read.



 Comments   
Comment by Federico Grilli [ 23/Sep/15 ]

Thanks for spotting! We'll try to include the fix in MTE 0.7 release.

Comment by Jordie Diepeveen [ 28/Sep/15 ]

Hi, this seems to be related to the SwitchableFieldDefinition as we also see the same problem in the form of a App using the field definition.
The properties created by the SwitchableFieldDefinition seems to be appended by 'linkType'. Introduced in Mgnl 5.4.2?

[update]
After some debugging, it seems to be in the CompositeTransformer#getCompositePropertyName() method.
The field definition is i18n, so the propertyName (linkTypeexternal) will be appended by the basePropertyName ('linkType'). This results in the field 'linkTypeexternallinkType'.

See MAGNOLIA-6395

Comment by Federico Grilli [ 28/Sep/15 ]

Thanks a lot for investigating and pinpointing the cause of the issue!

Cheers,

Federico, for the Magnolia team

Comment by Federico Grilli [ 28/Sep/15 ]

Closed this issue as we already have the one causing it, i.e. MGNLUI-3608.

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