Commit b7fbf018 authored by Yusei Tahara's avatar Yusei Tahara

Fixed a bug. preference may be None.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18853 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 27052cbb
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
<value> <string>portal_preferences = context.portal_preferences\n <value> <string>portal_preferences = context.portal_preferences\n
\n \n
preference = portal_preferences.getActivePreference()\n preference = portal_preferences.getActivePreference()\n
if preference.getPreferenceState()!=\'enabled\':\n if preference is None or preference.getPreferenceState()!=\'enabled\':\n
p = portal_preferences.newContent()\n p = portal_preferences.newContent()\n
p.setTitle(\'Document Template Container\')\n p.setTitle(\'Document Template Container\')\n
p.enable()\n p.enable()\n
...@@ -135,6 +135,7 @@ return context.Base_redirect(form_id,\n ...@@ -135,6 +135,7 @@ return context.Base_redirect(form_id,\n
<string>context</string> <string>context</string>
<string>portal_preferences</string> <string>portal_preferences</string>
<string>preference</string> <string>preference</string>
<string>None</string>
<string>p</string> <string>p</string>
<string>parent</string> <string>parent</string>
<string>document_id</string> <string>document_id</string>
......
683 684
\ 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