[MGNLUI-2712] info.magnolia.ui.form.field.definition.SwitchableFieldDefinition does not respect mandatory value Created: 26/Feb/14 Updated: 21/Oct/15 Resolved: 20/Mar/15 |
|
| Status: | Closed |
| Project: | Magnolia UI |
| Component/s: | None |
| Affects Version/s: | 5.2.2 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Tom Wespi | Assignee: | Mikaël Geljić |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||||||||||||||||||
| 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: | |||||||||||||||||||||||||
| Comments |
| Comment by Mikaël Geljić [ 26/Feb/14 ] |
|
Hi Tom! Not sure whether you plan to elaborate a bit on this issue, nevertheless I think it may well be the same as Can you take a look and confirm that this is indeed the same? (so that I can close this one as duplicate), or shout if it's yet a different problem? Cheers! |
| Comment by Nexus for Visana Services AG Development Center ECM (Contact: Casper Biever at Visana Services AG) [ 09/Feb/15 ] |
|
We have a switchable with mandatory fields. The problem arrises when one tries to save the dialog: also the non visible fields are validated. The result is that the dialog cannot be closed. |
| Comment by Nexus for Visana Services AG Development Center ECM (Contact: Casper Biever at Visana Services AG) [ 09/Feb/15 ] |
|
Example configuration. |
| Comment by Mikaël Geljić [ 20/Mar/15 ] |
|
Hi Stephan, This ticket here was an old behavior where validation could be ignored in some cases. Cheers, |
| Comment by Nexus for Visana Services AG Development Center ECM (Contact: Casper Biever at Visana Services AG) [ 24/Mar/15 ] |
|
Hello Mika, We have 5.3.7 and the Error is definitely still there. I have attached some screenshots of our workaround and some code. The key is in the isValid method where there is an extra check if a field is visible. If not, it isn't validated. Regards, Casper (on behalf of Stephan) |
| Comment by Magnolia International [ 24/Mar/15 ] |
|
Hey Casper, Stephan, It looks like you're accidentally using an account that should be used solely for the purpose of mirroring our Nexus repo into yours. It also looks like this account was accidentally given permissions for commenting here, which is a mistake on our end. Stephan, you do have a personal account with us (stephan.schoell), could you please use that one in future ? Thanks, -greg |
| Comment by Casper Biever [ 25/Mar/15 ] |
|
Hi Grégory, I have my own account now and will use that in the future. Regards, Casper |