notebook icon indicating copy to clipboard operation
notebook copied to clipboard

Linking two fields in the same request duplicates those links

Open drusepth opened this issue 6 years ago • 2 comments

Expected behavior

  • A user should be able to complete all the linking fields they'd like, and have their page save how they expect.

Actual behavior

  • If a user completes more than 1 linking field per page save, the links duplicate on each field.

Steps to reproduce the behavior

  1. Edit a character.
  2. Link Alice as a Mother and Bob as a Father.
  3. View that character: Alice will be listed twice under Mothers, and Bob will be listed twice under Fathers.

drusepth avatar May 13 '19 02:05 drusepth

This looks to be fixed in the upgrade to Rails 6, but since it only intermittently happened before it needs some more time/testing to make sure it's actually fixed before this can be closed.

drusepth avatar Jan 09 '20 17:01 drusepth

Stumbled on this issue on notebook.ai too. However, it only seems to occur when using "Enter" to select a object from the "link something" drop down. The Enter key also submits the edit form instead of the expected "use this entry".

I could not reproduce this issue when using the mouse to select the objects for linking.

ironjan avatar Mar 01 '21 22:03 ironjan