Commit 04c66cbb authored by Romain Courteaud's avatar Romain Courteaud

Prevent AttributeError exception when preferred_section_category is not yet defined

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24735 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e8d188ad
...@@ -85,10 +85,6 @@ ...@@ -85,10 +85,6 @@
<key> <string>values</string> </key> <key> <string>values</string> </key>
<value> <value>
<dictionary> <dictionary>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>field_id</string> </key> <key> <string>field_id</string> </key>
<value> <string>my_category</string> </value> <value> <string>my_category</string> </value>
...@@ -128,7 +124,7 @@ ...@@ -128,7 +124,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python: [(\'\', \'\')] + [(x.getTitle(), x.getRelativeUrl()) for x in here.portal_categories.resolveCategory(here.getPreferredSectionCategory()).getGroupRelatedValueList(portal_type=\'Organisation\')]</string> </value> <value> <string>python: [(\'\', \'\')] + [(x.getTitle(), x.getRelativeUrl()) for x in here.portal_categories.resolveCategory(here.getPreferredSectionCategory(\'portal_categories\')).getGroupRelatedValueList(portal_type=\'Organisation\')]</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
1028 1029
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment