Hook update losing conf/texts

Created on 12 July 2024, 5 months ago
Updated 31 July 2024, 5 months ago

When update from 1.x hook update loose data.

For tac configuration, it sets keys to null if old values are equals to default.
Then, when module inject configuration in drupalSettings, it keep null values and TACjs doesn't replace them with default value.
We need to replace null config values by default values in hook update.

For texts, all sub keys are loose in new structure. Keys like "xxxx_title" and "xxx_details" should be convert into

[
  ...
  "XXX" => [
     "title" => "...",
     "details" => "...",
  ],
  ...
]
🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇫🇷France klelostec

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

Comments & Activities

Production build 0.71.5 2024