Review main Merged

65067[BUGFIX] Deleting a localized page deletes its localized records

Christian Kuhn CR +2 V +2 Normal +210 −27 updated 07/25/20, 08:52

Commit message

This fixes an issue that has been in the core "since ever":
Have a localized page with localized records on it. If the
page localization is deleted (for instance via list module),
its localized records are NOT marked as deleted. They are
not shown anymore since the localized page record is gone,
but they're still there. If later a localization of this page
with the same sys_language_uid is created again, the records
magically reappear.
The patch changes DataHandler->deleteSpecificPage() to delete
localized records of localized pages correctly for the
sys_language_uid in question if the table is localization
aware.
An edge case within workspace is handled to suppress the
cascading delete while swapping pages.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 9