[MGNLPN-609] Copy/Paste of component variant generates invalid page structure Created: 11/Oct/21  Updated: 15/Apr/22  Resolved: 07/Dec/21

Status: Closed
Project: Magnolia Personalization
Component/s: None
Affects Version/s: 2.0.12
Fix Version/s: 2.1.1, 2.0.13

Type: Bug Priority: Major
Reporter: Roberto Gaona Assignee: Canh Nguyen
Resolution: Fixed Votes: 0
Labels: VN-Maintenance
Remaining Estimate: Not Specified
Time Spent: 5d 3h
Original Estimate: Not Specified

Attachments: PNG File image-2021-10-11-09-38-17-384.png    
Issue Links:
Problem/Incident
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
Date of First Response:
Sprint: Pages Maintenance 1, Pages Maintenance 2
Story Points: 3

 Description   

Steps to reproduce
This can be reproduced on any demo page:

  1.  Go to any page with a component with variants (or create a simple variant on one)
  2.  Copy such component with the variant selected and paste it on the page main area (example)

Expected
The copied variant component should be pasted without issues on the page.

Actual
The component is pasted along with a copy of the main area, generating an invalid structure and not allowing modifications on the pasted component.

Workaround
In case of having to copy a variant of the component, copying the main variant of it and pasting it gives you no errors. After it, just remove undesired variants to leave the component on the intended state.


Generated at Mon Feb 12 06:39:20 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.