When a node is translatable, it's possible you have two edit screens open from the same node, but in a different language.
The tempstore has no clue about the language, so hitting preview might overwrite the node stored in tempstore.
- Open two languages for the same node in two tabs
- http://localhost/en/node/1/edit
- http://localhost/fr/node/1/edit
- press preview on the french one, then preview in the english one
- Press back to editing in the french one, you are now editing in English
Borderline critical as there is data loss involved here.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2907091-2.patch | 1.55 KB | swentel |
Comments
Comment #2
swentel CreditAttribution: swentel at eps & kaas for MuseScore commentedComment #3
swentel CreditAttribution: swentel at eps & kaas for MuseScore commentedComment #4
swentel CreditAttribution: swentel at eps & kaas for MuseScore commentedNote: the save() method should also be changed
$store->delete($node->uuid() . '-' . $node->language()->getId());
Comment #5
swentel CreditAttribution: swentel at eps & kaas for MuseScore commentedComment #6
timmillwoodNice find, the patch looks pretty simple, but we'll need tests for it.
Comment #8
cilefen CreditAttribution: cilefen commented