Skip to content

Commit a00af7a

Browse files
authored
Merge pull request #1637 from plone/gforcada-patch-2
feat(upgrade): mention the boolean fields changes
2 parents ef89b06 + 869997b commit a00af7a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/backend/upgrading/version-specific-migration/upgrade-to-60.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -650,3 +650,9 @@ Plone 6.0 makes changes to two viewlet managers:
650650
One final change is that Plone 6.0 moves the `plone.footer` viewlet from `plone.app.layout/viewlets` to `plone.app.portlets`.
651651
The viewlet remains in manager `plone.portalfooter`.
652652
It renders the portlets from the `plone.footerportlets` portlet manager.
653+
654+
## Boolean fields
655+
656+
Since `zope.schema==6.1.0`, all `zope.schema.Bool` fields must have a `required=False` attribute.
657+
This allows you to either tick or not tick the checkbox, submit the form, and process the field with either its value when ticked or `None` when unticked.
658+
Otherwise, you can't save the form without ticking the checkbox, which effectively makes the field value always `True`.

0 commit comments

Comments
 (0)