UCL / frrant

2 stars 0 forks source link

‘Make anonymous’-feature creates multiple fragments with identical name #309

Closed stephencblair closed 2 years ago

stephencblair commented 2 years ago

Sometimes when an ‘unlinked’ fragment is converted to an ‘anonymous’ one, it’s given an ‘Anonymous F-’ number which is already assigned to an existing anonymous fragment. Both fragments continue to exist with the identical number.

To Reproduce

  1. Open any fragment for editing, and click the button to edit the ‘commentary’ box.
  2. Type ‘@F198’ to create a link to fragment ‘Anonymous F198’.
  3. In the menu that pops up, ‘Anonymous F198’ will appear twice.
  4. Create two links, one pointing to each ‘Anonymous F198’.
  5. Click on the links and see that there are two separate fragments called ‘Anonymous F198’.

Expected behavior When an unlinked fragment is converted to an anonymous fragment, it should be given a new and not yet assigned anonymous F- number.

Additional context Note: This has happened to me a few times while trying to convert relatively old unlinked and anonymous fragments back and forth. I have tried to reproduce the problem with new fragments created for the purpose, but for some reason the problem doesn’t seem to occur with freshly minted fragments.

stephencblair commented 2 years ago
Screen Shot 2021-12-14 at 11 58 07 Screen Shot 2021-12-14 at 12 00 38