xwikisas / application-diagram

Create various types of diagrams using draw.io
GNU Lesser General Public License v2.1
0 stars 5 forks source link

Duplicating content brokes the editor #275

Closed oanalavinia closed 2 weeks ago

oanalavinia commented 2 weeks ago

Steps to reproduce:

  1. Start editing a diagram

  2. Add any shape

  3. Save

  4. Duplicate it by using right click on the shape -> Duplicate image

  5. Save

  6. (Optional) Add other changes

  7. Save

  8. Observe the diagram content in view mode

Expected result: The diagram content was saved

Actual result: Everything that was done after duplicating the shape is not saved. ! If you do not save right after Duplicate, than the issue is not reproducing. Unfortunately, you don't get any feedback that your changes are not saved.

Refreshing the page will fix the editor, but the changes will be lost. Only the attachments keep the right version (until a new save overrides their content)

Note that this is not happening if you use Copy + Paste (from keyboard or diagram menu)

oanalavinia commented 2 weeks ago

Fixed by https://github.com/xwikisas/application-diagram/issues/267

Note that this issue has been reported after the release was done, since we found about it later