Closed (duplicate)
Project:
Drupal core
Version:
9.4.x-dev
Component:
configuration system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Sep 2020 at 15:33 UTC
Updated:
2 Dec 2021 at 11:53 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
alexpottI think this patch is enough to disable the config translation updates. We need a test and good steps to reproduce the issue.
Comment #3
alexpottComment #4
alexpottSo the patch in #2 fixes the immediate problem but then when you install another module on the site it reverts the role name to
Angemeldeter Benutzerso it is not a complete fix.Comment #5
maacl commented@alexpott I think maybe this is a duplicate of, or at least related to #2806009: Installing a module causes translations to be overwritten.
Comment #6
alexpott@maacl - I agree it is related but unfortunately it is not the same. This is being caused by how \Drupal\locale\LocaleConfigSubscriber::onConfigSave() is not triggered during a site install (note this is NOT a module install).
I think the solution is to trigger the
install_config_revert_install_changestask after theinstall_finish_translationstask and ensure that \Drupal\locale\LocaleConfigSubscriber::onConfigSave() triggers correctly whileinstall_config_revert_install_changesis running.Comment #7
alexpottHere's a test only patch.
Comment #8
alexpottHere's the first bit of the fix the makes the configuration correct after config install - but we still need to register the customisations. Other (as this test shows) installing a module will result in them being reverted.
Comment #11
alexpottI think this fixes the problem.
Comment #14
alexpottI think I might be trying to fix the same bug in two different issues - see #2925203: LocaleConfigSubscriber can result in data loss during install
Comment #16
catchMarking as duplicate of #2925203: LocaleConfigSubscriber can result in data loss during install.