[MGNLUI-6236] Validation triggers on non-active/not selected fields when using switchableField Created: 23/Sep/20 Updated: 22/Sep/21 Resolved: 14/Oct/20 |
|
| Status: | Closed |
| Project: | Magnolia UI |
| Component/s: | app framework |
| Affects Version/s: | 6.2.3 |
| Fix Version/s: | 6.2.4 |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Tobias Kerschbaum | Assignee: | Adam Siska |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | cs-bk | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | 19m | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||
| 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: | |||||||||||||||||||||||||||||||||
| Epic Link: | UI framework implementation | ||||||||||||||||||||||||||||||||
| Sprint: | UI FW 13 | ||||||||||||||||||||||||||||||||
| Story Points: | 3 | ||||||||||||||||||||||||||||||||
| Description |
|
When you use a switchableField in the new UI framework to switch between two sets of fields, the fields in both sets are required, validation fails because it does not recognise that the fields in one of the sets are not visible. A good example to understand the problem can be found here: It still worked in my module in 6.2.1 Dev notesCould be related to change in defaulting. Visibility status is probably ignored (not accessible) when validating. Custom logic in SwitchableFormView validate() is already checking only the current representation. |