Skip to content

Adding a new alternative to a rule with one existing alternative loses entered data when reordering #62

@AAClause

Description

@AAClause

When a rule has exactly one existing alternative criteria set and the user adds a new (second) alternative, changing the sequence order causes the new alternative to take the same data as the existing one. The data entered by the user for the new alternative is lost, resulting in two alternatives with identical data.

This issue only occurs when going from 1 to 2 alternatives. If the rule already has 2 or more alternatives, reordering works correctly and data is properly saved.

Steps to Reproduce:

  1. Create or edit a rule that has exactly one alternative criteria set
  2. Click "New..." to add a second alternative
  3. Enter distinct criteria data for the new alternative
  4. In the "Sequence order" dropdown, change the position from "2" to "1"
  5. Save the alternative

Expected Behavior:
The new alternative should be inserted at the selected position with the data the user entered.

Actual Behavior
The new alternative is created with the same data as the existing alternative. The user's entered data is lost.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions