[MGNLUI-2165] Decored FieldDefinition can no more use class name to perform comparison Created: 27/Sep/13  Updated: 26/Feb/15  Resolved: 27/Sep/13

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

Type: Bug Priority: Critical
Reporter: Eric Hechinger Assignee: Eric Hechinger
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to MGNLUI-829 Field with property extends=override ... 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
Sprint: 5.1 - Final

 Description   

In FromBuilder, the following statement will always be false even if the fieldDefinition is a ConfiguredFieldDefinition.

if (fieldDefinition.getClass().equals(ConfiguredFieldDefinition.class)) {

This is due to the fact that i18n decorate now the fieldDefinition.

Only way to solve this is to undecorate the definition before performing the if statement.


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