Skip to content

Commit

Permalink
Remove check from getPreviousItem
Browse files Browse the repository at this point in the history
  • Loading branch information
tisto committed Apr 15, 2020
1 parent bac0225 commit 92634f4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions plone/app/dexterity/behaviors/nextprevious.py
Expand Up @@ -98,8 +98,6 @@ def getPreviousItem(self, obj):
return None
order_reversed = list(reversed(self.order))
pos = order_reversed.index(obj.getId())
if not pos:
return None
for oid in order_reversed[pos + 1:]:
data = self.getData(self.context[oid])
if data:
Expand Down

0 comments on commit 92634f4

Please sign in to comment.