Skip to content

Commit

Permalink
Fix dropdown_depth
Browse files Browse the repository at this point in the history
  • Loading branch information
hvelarde committed Sep 14, 2018
1 parent 65e488a commit faf3483
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/brasil/gov/portal/profiles/default/propertiestool.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<object name="portal_properties" meta_type="Plone Properties Tool">
<object name="dropdown_properties" meta_type="Plone Property Sheet">
<property name="dropdown_depth" type="int">2</property>
<property name="dropdown_depth" type="int">1</property>
</object>
<object name="navtree_properties" meta_type="Plone Property Sheet">
<property name="metaTypesNotToList" type="lines">
Expand Down
2 changes: 1 addition & 1 deletion src/brasil/gov/portal/tests/test_portal_properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@ def test_selectable_views(self):

def test_dropdown_depth(self):
dropdown = self.portal['portal_properties'].dropdown_properties
self.assertEqual(dropdown.dropdown_depth, 2)
self.assertEqual(dropdown.dropdown_depth, 1)
2 changes: 1 addition & 1 deletion src/brasil/gov/portal/tests/test_upgrades.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ def test_dropdownmenu_properties(self):

# execute upgrade step
self._do_upgrade(step)
self.assertEqual(dropdown.dropdown_depth, 2)
self.assertEqual(dropdown.dropdown_depth, 1)

def test_navigation_properties(self):
title = u'Import various'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<object name="portal_properties" meta_type="Plone Properties Tool">
<object name="dropdown_properties" meta_type="Plone Property Sheet">
<property name="dropdown_depth" type="int">2</property>
<property name="dropdown_depth" type="int">1</property>
</object>
<object name="navtree_properties" meta_type="Plone Property Sheet">
<property name="metaTypesNotToList" type="lines">
Expand Down

0 comments on commit faf3483

Please sign in to comment.