notebook
notebook copied to clipboard
Linking two fields in the same request duplicates those links
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
- Edit a character.
- Link Alice as a Mother and Bob as a Father.
- View that character: Alice will be listed twice under Mothers, and Bob will be listed twice under Fathers.
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.
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.