-
Bug
-
Resolution: Not an issue
-
Major
-
None
-
5.4.12, 5.5.3
-
None
-
None
Step to reproduce:
- Import file to /modules/ui-framework/dialogs/rename/form/tabs/item/fields
- Open Contacts app
- Choose one item and select Rename contact
Observation: Select field doesn't select Test 1
Expectation: Test 1 must be selected
Source of problem
Since code was introduced from MGNLUI-4113
public void setPropertyDataSourceAndDefaultValue(Property property) { this.field.setPropertyDataSource(property); if ((item instanceof ItemAdapter && ((ItemAdapter) item).isNew() && property.getValue() == null) || (!(item instanceof ItemAdapter) && property.getValue() == null)) { setPropertyDataSourceDefaultValue(property); } }
so in case of item is existed like contact item, #setPropertyDataSourceDefaultValue will never call
Acceptance criteria
- caused by
-
MGNLUI-4113 "selected" property is ignored for new select field added into an existing dialog
- Closed
- relates to
-
MGNLUI-4264 Switchable Field default selection doesn't work
- Closed