Any text in the grammatical features box which is not linked to an item is lost when saving.
To reproduce:
- Add a new form
- Enter a nonsensical string in the grammatical features box (anything which does not find any results)
- Save
Alternatively:
- Edit an editing form
- Make a change to the representation field, to enable the save button
- Enter a nonsensical string in the grammatical features box (anything which does not find any results)
- Save
Expected behaviour: Saving is disabled or gives an error because the grammatical features contains text which is not linked to an item.
Actual behaviour: Form is saved with no grammatical features (when adding a form) or with no new grammatical features (when editing a form).
I typically encounter this when I press enter too soon after entering my search term. If the search results are shown, pressing enter selects the first result. But if I press enter too soon, there are no search results yet, so it triggers a save instead.