Module settings not saved on multilanguage site

Created on 6 September 2023, almost 2 years ago

Problem/Motivation

I have .ru and .com sites for. Ru is main language, en is second.
If I change settings on domain.ru/admin/config/media/colorbox all is ok. But on domain.com/admin/config/media/colorbox settings (i.e. Current, Previous, Next, Close) not saved. Message "The configuration options have been saved." is present, but values is old.

Steps to reproduce

Setup double language site, ie ru and en.
Try to change colorbox settings.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇷🇺Russia vvs Russia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @vvs
  • Assigned to samit.310@gmail.com
  • Status changed to Needs work over 1 year ago
  • Issue was unassigned.
  • Status changed to Needs review over 1 year ago
  • Open in Jenkins → Open on Drupal.org →
    Core: 10.2.x + Environment: PHP 8.1 & MySQL 8
    last update over 1 year ago
    4 pass
  • 🇮🇳India samit.310@gmail.com

    Hi @VVS ,

    Issue has been fixed, Please review the patch.

    Thanks
    Samit K.

  • 🇫🇷France erwangel

    Patch #3 worked and didn't work. Let me explain: my case is a site in French (fr, default), English (en) and German (de), with prefix detection of the interface language. Although the site's default language is French, the admin language is English. I have the problem of saving the configuration. My workaround was to export single configuration, change the values (max width and height) and reimport the single configuration.

    After installing the patch, First step I changed my values in the default language (fr). It didn't save. Then I noticed there was a new tab to translate the colorbox config. I changed the values in the English language and this time values were saved and new values were available in all three languages. So, I can say patch worked.

    As I wasn't sure if the translation tab was the fact of the patch or if it was there before applying it, I decided to remove the patch and see what happens (I was expecting the tabs were from the original module and wanted to play with them and see the difference of behavior with the patch). After removing the patch and clearing caches the translation tabs disappeared, I so had confirmation that the translation tab was installed by the patch. But now, without the patch, the settings are saved! It is like installing and removing the patch, it repaired the config saving problem. Strange... I suspect this operation changed something in the configuration storage language but what ?

Production build 0.71.5 2024