Skip to content

The undo stack inserts deleted content in the wrong flow nodes #712

Closed
@christian-konrad

Description

@christian-konrad

Describe the Bug

When you delete a name or id of a flow node in the properties panel, then add a new node and hit undo, the name or id is inserted back again - in the right property, but of the wrong flow node. So, the revert operation is not conducted properly. Also, adding the flow node itself is not reverted. It seems like the undo stacks of the properties panel and bpmn-js clash.

Steps to Reproduce

  1. Have a flow node
  2. Enter a name or id
  3. Remove the name or id (select all + entf/backspace/cut)
  4. Add a new flow node
  5. Hit undo
  6. -> The name or id is inserted back again, but in the currently selected flow node (the new one)

Or just see the videos.

Bildschirmaufnahme.2022-06-28.um.22.01.23.mov
Bildschirmaufnahme.2022-06-28.um.21.59.22.mov

(Not validated if this also applies to other properties than ids and names).

Expected Behavior

Hitting undo, at first the newly added flow node should be removed, then the name or id should be inserted back again in the original node.

Environment

  • Desktop Modeler 5.0.0 and Web Modeler (Nightly and our current dev env ultrawombat)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingspring cleaningCould be cleaned up one day

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions