[MGNLUI-5736] Complex fields with jcrChildNodeProvider persists empty node when not touched Created: 16/Mar/20 Updated: 07/Nov/22 Resolved: 07/Nov/22 |
|
| Status: | Closed |
| Project: | Magnolia UI |
| Component/s: | None |
| Affects Version/s: | 6.2.18 |
| Fix Version/s: | 6.3, 6.2.27 |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Adam Siska | Assignee: | Adam Siska |
| Resolution: | Fixed | Votes: | 3 |
| Labels: | None | ||
| Σ Remaining Estimate: | Not Specified | Remaining Estimate: | Not Specified |
| Σ Time Spent: | 1.25d | Time Spent: | 1.25d |
| Σ Original Estimate: | Not Specified | Original Estimate: | Not Specified |
| Issue Links: |
|
||||||||||||||||||||||||||||||
| Sub-Tasks: |
|
||||||||||||||||||||||||||||||
| Template: |
|
||||||||||||||||||||||||||||||
| Acceptance criteria: |
Empty
|
||||||||||||||||||||||||||||||
| Task DoD: |
[X]*
Doc/release notes changes? Comment present?
[X]*
Downstream builds green?
[X]*
Solution information and context easily available?
[X]*
Tests
[X]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||||||||||||||||||||||||||||
| Bug DoR: |
[X]*
Steps to reproduce, expected, and actual results filled
[X]*
Affected version filled
|
||||||||||||||||||||||||||||||
| Release notes required: |
Yes
|
||||||||||||||||||||||||||||||
| Documentation update required: |
Yes
|
||||||||||||||||||||||||||||||
| Date of First Response: | |||||||||||||||||||||||||||||||
| Epic Link: | jcrChildNodeProvider creates nodes for unselected subforms | ||||||||||||||||||||||||||||||
| Sprint: | Nucleus 22 | ||||||||||||||||||||||||||||||
| Story Points: | 3 | ||||||||||||||||||||||||||||||
| Team: | |||||||||||||||||||||||||||||||
| Description |
|
Steps to reproduce:
form:
properties:
jcrName:
label: New name
$type: textField
upload:
class: info.magnolia.ui.editor.UploadViewDefinition
itemProvider:
$type: jcrChildNodeProvider
composite:
$type: compositeField
itemProvider:
$type: jcrChildNodeProvider
properties:
city:
label: city
$type: textField
country:
label: country
$type: textField
2) invoke dialog on node and save dialog without touching fields Expectation (and old-fw behaviour): nothing happens Actual behaviour: empty subnodes are created within the node for fields |
| Comments |
| Comment by Roman Kovařík [ 10/Oct/22 ] |
|
Discovery: Sketched solution:
Possible problem: Given a complex field with e.g. only mgnl:lastModified field, this one would bw removed.
|