summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-07-13 14:12:33 +0200
committererdgeist <erdgeist@erdgeist.org>2026-07-13 14:12:33 +0200
commitea8ee1d35948c6adc4a377c9eb77d99b2d856932 (patch)
tree2a5c97180bd9f4ac8843379af46984d498db1412 /public
parent8baac265059b70da0148487458ee4077b15f155e (diff)
Carry over other-locale translations when creating an autosaveerdgeist-revive-events
Node#autosave! only copied assets forward onto a newly created autosave, not translations. Invisible for single-locale nodes, but a node with an existing multi-locale head/draft that gets locked and edited in one locale would silently drop every other locale's translation from the new autosave -- and from there into the draft and eventually head, since save_draft! faithfully clones whatever the autosave actually holds. Fixed by using clone_attributes_from, which already does a complete clone (translations, assets, tags, template, published_at) -- the same method save_draft! already relies on two branches later, so no new mechanism, just closing the one place still doing a partial, hand-rolled version of it.
Diffstat (limited to 'public')
0 files changed, 0 insertions, 0 deletions