Duplicate values appear in numerically-indexed arrays of configs

Created on 16 June 2020, over 4 years ago
Updated 23 March 2023, over 1 year ago

It looks like whenever a config contains an array of values that use numeric indexes (i.e. not an associative array), Config Rewrite appends values to the array instead of replacing it. This can lead to some strange -- though non-fatal -- results in arrays like dependencies.

Some examples (config from the original site that our distribution was created from vs. config after site install via Config Rewrite):


πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States GuyPaddock

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡§πŸ‡ͺBelgium BramDriesen Belgium πŸ‡§πŸ‡ͺ

    I also noticed this behaviour today. Didn't figure out where the values where coming from until I ran a config rewrite again on the same items.

Production build 0.71.5 2024