Previewing translatable nodes can lead to data loss

Created on 6 September 2017, over 7 years ago
Updated 9 September 2024, 3 months ago

Problem/Motivation

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.

Steps to reproduce

- 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.

Proposed resolution

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

๐Ÿ› Bug report
Status

Needs work

Version

11.0 ๐Ÿ”ฅ

Component
Node systemย  โ†’

Last updated 4 days ago

No maintainer
Created by

๐Ÿ‡ง๐Ÿ‡ชBelgium swentel

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024