Skip to content

fix: cast allowComments to boolean#3381

Merged
Koc merged 1 commit into
mainfrom
fix/allowComments
Jun 5, 2026
Merged

fix: cast allowComments to boolean#3381
Koc merged 1 commit into
mainfrom
fix/allowComments

Conversation

@Chartman123

Copy link
Copy Markdown
Collaborator

This fixes an issue that Forms crashes on loading a newly created form. The db value for allowComments wasn't casted to (bool) and so it provided null as initial value. This couldn't be used as modelValue for the NcCheckboxRadioSwitch in the settings sidebar.

Signed-off-by: Christian Hartmann chris-hartmann@gmx.de

Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
@Chartman123 Chartman123 added 3. to review Waiting for reviews regression Regression of a previous working feature labels Jun 5, 2026
@Chartman123 Chartman123 requested a review from Koc June 5, 2026 10:10
@Chartman123 Chartman123 added this to the 5.3 milestone Jun 5, 2026
@Chartman123 Chartman123 requested a review from pringelmann June 5, 2026 10:10
@Chartman123 Chartman123 self-assigned this Jun 5, 2026
@Chartman123 Chartman123 added the high High priority label Jun 5, 2026
@codecov

codecov Bot commented Jun 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@Koc Koc enabled auto-merge (squash) June 5, 2026 11:37
@Koc Koc merged commit a138698 into main Jun 5, 2026
53 checks passed
@Koc Koc deleted the fix/allowComments branch June 5, 2026 11:38
timedin-de pushed a commit to timedin-de/forms that referenced this pull request Jun 5, 2026
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
timedin-de pushed a commit to timedin-de/forms that referenced this pull request Jun 5, 2026
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
timedin-de pushed a commit to timedin-de/forms that referenced this pull request Jun 6, 2026
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews high High priority regression Regression of a previous working feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants