[LIVECOPY-163] Multivalue properties are not pushed when it doesn't exist in slave Created: 28/Oct/19 Updated: 03/Dec/20 Resolved: 06/Nov/19 |
|
| Status: | Closed |
| Project: | Live Copy |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 3.1.1 |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Mercedes Iruela | Assignee: | Trung Luu |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | 0d | ||
| Time Spent: | 1d 6.5h | ||
| 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
|
||||
| Release notes required: |
Yes
|
||||
| Epic Link: | Ext DAMs maintenance & partnership support | ||||
| Sprint: | Add-Ons 24 | ||||
| Story Points: | 3 | ||||
| Description |
|
If there is a multivalue field that is not required and the livecopy is done without this value, then when the value is filled, it is not pushed to the slave copy: info.magnolia.livecopy.actions.PropagateMasterContentChangesHelper.updateMasterProperties if (masterProperty.isMultiple()) { if (referencedNode.hasProperty(masterProperty.getName())) { referencedNode.setProperty(masterProperty.getName(), masterProperty.getValues()); }else{ ... } This piece of code is ignoring new properties in multiple fields when these fields are not required and the component is already created. if property isMultiple, then the value is updated in case the property already exists. Steps to reproduce: Attached you can find a component example. |