Skip to content

Commit

Permalink
use correct values
Browse files Browse the repository at this point in the history
  • Loading branch information
jensens authored and esteele committed Sep 18, 2015
1 parent dd5f7bc commit c107879
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plone/app/upgrade/v50/betas.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,8 +470,8 @@ def upgrade_navigation_controlpanel_settings_2(context):
).decode('utf8')
navigation_properties._delProperty('sortAttribute')

desc = navigation_properties.getProperty('sortOrder') == 'desc'
settings.sort_tabs_reversed = desc
order = navigation_properties.getProperty('sortOrder', None)
settings.sort_tabs_reversed = order in ['descending', 'reverse']
navigation_properties._delProperty('sortOrder')

settings.root = navigation_properties.getProperty('root').decode('utf8')
Expand Down

0 comments on commit c107879

Please sign in to comment.