Skip to content

[6.x] Default legacy setAttributes to not use safeOnly#18849

Merged
riasvdv merged 1 commit into
6.xfrom
rias/cms-2073-6x-plugin-settings-not-saving-consistently
May 13, 2026
Merged

[6.x] Default legacy setAttributes to not use safeOnly#18849
riasvdv merged 1 commit into
6.xfrom
rias/cms-2073-6x-plugin-settings-not-saving-consistently

Conversation

@riasvdv
Copy link
Copy Markdown
Contributor

@riasvdv riasvdv commented May 13, 2026

Description

Fixes #18848

By default, the legacy model's setAttributes only allows safe attributes that are being validated. In 5.x the plugin settings would call ->setAttributes($values, false) explicitly however the safeOnly behavior is not ported to 6.x as it was not necessary.

All legacy callsites of ->setAttributes() call it with false currently, so making this the default for the adapter is a logical compatibility fix.

@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 13, 2026

CMS-2073

@riasvdv riasvdv merged commit a181cef into 6.x May 13, 2026
18 checks passed
@riasvdv riasvdv deleted the rias/cms-2073-6x-plugin-settings-not-saving-consistently branch May 13, 2026 12:21
riasvdv added a commit that referenced this pull request May 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant