Bug 525540 - [Table][Matrix] Undo after removing column sources does not preserve the order of columns
Summary: [Table][Matrix] Undo after removing column sources does not preserve the orde...
Status: ASSIGNED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Table (show other bugs)
Version: 4.0.0   Edit
Hardware: PC Windows NT
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-04 04:38 EDT by Thanh Liem PHAN CLA
Modified: 2017-10-04 10:43 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thanh Liem PHAN CLA 2017-10-04 04:38:35 EDT
Steps to reproduce the bug:
- Create Package1ColumnSource with child elements: Class11, Class12
- Create Package2ColumnSource with children: Class21, Class22
- Create a matrix table
- Define column sources as Package1ColumnSource & Package2ColumnSource
- Column order is "Class11, Class12, Class21, Class22"
- Remove Package1ColumnSource from column sources
- Column order is now "Class21, Class22"
- Undo

Expected column order: "Class11, Class12, Class21, Class22"
Actual column order: "Class21, Class22, Class11, Class12"

The column order is not preserved after the undo.
Comment 1 Vincent Lorenzo CLA 2017-10-04 10:43:32 EDT
A JUnit test has been created for the bug 525367. It provides several JUnit tests. One of them check the Undo after a column source removing. The undo check is commented. Fixing this bug, this test must be completed.