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
No related merge requests found
......@@ -85,10 +85,6 @@
<key> <string>values</string> </key>
<value>
<dictionary>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string>my_category</string> </value>
......@@ -128,7 +124,7 @@
<dictionary>
<item>
<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>
</dictionary>
</pickle>
......
1028
\ No newline at end of file
1029
\ 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