Problem/Motivation
Found by @jibran in #1959806-56: Provide a generic 'entity_autocomplete' Form API element. Copying over the steps to reproduce from there:
- Create a node with new tags. (ER auto tag widget)
- Edit the node. (This shows correct default values)
- Replace the default values of ER field with new tag.
- Preview the node.
- Come back to edit form
- Now default value is new tag with no id( which is correct)
- View the node. See I didn't save the node.
- I can see the tags added in 1.
- Edit the node.
- I should see 2. Instead I see 6.(This is the bug.)
Proposed resolution
Delete the stale temp store entry for existing entities.
Remaining tasks
None.
User interface changes
Nope.
API changes
Nope.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 2421581.patch | 1.86 KB | amateescu |
| #1 | 2421581-test-only.patch | 1.29 KB | amateescu |
Comments
Comment #1
amateescu commentedSimple bug, simple fix.
Comment #3
andypostGreat, let's solve remains in #2421263: Potential data loss: concurrent (i.e. by different users) node edits leak through preview
This is a straight bug
Comment #4
webchickCommitted and pushed to 8.0.x. Thanks!