Review main Merged

80518[BUGFIX] Ensure copied records keep l10n_state behavior

Benni Mack CR +2 V +2 Normal +52 −1 updated 08/15/23, 14:05

Commit message

This change adds a test for localized pages that have
a l10n_source "custom" value (e.g. "pages.author").

When copying the page and its translation,
the l10n_state field is then set to "source",
which is wrong.

copyRecord() sets l10n_source=0, however DataMapItem
expects "null". The patch makes DataMapItem understand
0 as value for l10n_source as well.

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 4