Skip to content

[stable35] fix(settings): saving declarative settings fails for switches and personal forms - #66662

Merged
come-nc merged 1 commit into
stable35from
backport/66651/stable35
Nov 23, 2026
Merged

come-nc merged 1 commit into
stable35from
backport/66651/stable35

Conversation

@pringelmann

Copy link
Copy Markdown
Contributor

Backport of #66651

AI: partly generated, same as the original PR.

@pringelmann
pringelmann requested a review from a team as a code owner November 16, 2026 15:40
@pringelmann
pringelmann requested review from leftybournes and salmart-dev and removed request for a team November 16, 2026 15:40
@pringelmann pringelmann added this to the Nextcloud 35.0.4 milestone Nov 16, 2026
@come-nc

come-nc commented Nov 17, 2026

Copy link
Copy Markdown
Contributor
1) Test\Settings\DeclarativeManagerTest::testSetInternalValueIsStoredAsString with data set "switch" (1, '1')
Error: Call to undefined method Test\Settings\DeclarativeManagerTest::getAutoMock()

/home/runner/actions-runner/_work/server/server/tests/lib/Settings/DeclarativeManagerTest.php:548

Tests need to be adapted

Numbers from switches and number fields caused a 500 with internal storage. Lists are stored as JSON, like the frontend already sends them.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Peter Ringelmann <peter.ringelmann@nextcloud.com>
@pringelmann
pringelmann force-pushed the backport/66651/stable35 branch from cc08444 to ece17d9 Compare November 17, 2026 08:51
@pringelmann pringelmann self-assigned this Nov 17, 2026
@come-nc
come-nc merged commit 5c051bb into stable35 Nov 23, 2026
160 of 161 checks passed
@come-nc
come-nc deleted the backport/66651/stable35 branch November 23, 2026 08:50
@nextcloud-bot nextcloud-bot mentioned this pull request Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants