Skip to content

Commit

Permalink
fix portlets with the new reverse setting
Browse files Browse the repository at this point in the history
  • Loading branch information
petschki committed Mar 25, 2022
1 parent 7ac6d13 commit 22112cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/collective/collectionfilter/filteritems.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def get_filter_items(
or filter_value in value_blacklist
):
continue
if type(filter_value) == int:
if type(filter_value) == int:
# if indexed value is an integer, convert to string
filter_value = str(filter_value)
if filter_value in grouped_results:
Expand Down
3 changes: 3 additions & 0 deletions src/collective/collectionfilter/portlets/collectionfilter.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class Assignment(base.Assignment):
view_name = None
content_selector = "#content-core"
hide_if_empty = False
reverse = False
# list_scaling = None

def __init__(
Expand All @@ -43,6 +44,7 @@ def __init__(
view_name=None,
content_selector="#content-core",
hide_if_empty=False,
reverse=False,
# list_scaling=None
):
self.header = header
Expand All @@ -56,6 +58,7 @@ def __init__(
self.view_name = view_name
self.content_selector = content_selector
self.hide_if_empty = hide_if_empty
self.reverse = hide_if_empty
# self.list_scaling = list_scaling

@property
Expand Down

0 comments on commit 22112cc

Please sign in to comment.