Skip to content

Commit

Permalink
pa.discussion as core-addon
Browse files Browse the repository at this point in the history
remove impossible values, since there never is the construction allowed of these two
see vocabulary plone.app.vocabularies.PortalTypes and https://github.com/zopefoundation/Products.CMFCore/blob/8d765b8ce7ec4e053e58f5c8dc45d08db01ce3e0/src/Products/CMFCore/TypesTool.py#L768
  • Loading branch information
jensens committed May 30, 2024
1 parent e210fe2 commit f3f45a9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 4 additions & 0 deletions news/65.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Remove ISearchSchemas types_not_searched "Discussion Item" value from plone.app.discussion and other impossible values too.
Default is empty now, since there will never the construction allowed of these three.
See https://github.com/zopefoundation/Products.CMFCore/blob/8d765b8ce7ec4e053e58f5c8dc45d08db01ce3e0/src/Products/CMFCore/TypesTool.py#L768
[@jensens]
6 changes: 1 addition & 5 deletions src/plone/base/interfaces/controlpanel.py
Original file line number Diff line number Diff line change
Expand Up @@ -1015,11 +1015,7 @@ class ISearchSchema(Interface):
"off here or by the relevant installer."
),
required=False,
default=(
"Discussion Item",
"Plone Site",
"TempFolder",
),
default=(),
missing_value=(),
value_type=schema.Choice(source="plone.app.vocabularies.PortalTypes"),
)
Expand Down

0 comments on commit f3f45a9

Please sign in to comment.