Commit 9ef6a126 authored by Tristan Cavelier's avatar Tristan Cavelier

XXX erp5_knowledge_pad:

parent e0714219
......@@ -79,7 +79,12 @@ if box_relative_url:\n
# Get the preferences (some casting of preferences would \n
# probably be a good thing here so that there is no need\n
# to cas them later)\n
preferences = box.KnowledgeBox_getDefaultPreferencesDict()\n
# \n
# XXX RAFAEL Prevent fail if no box is provided. \n
if box is not None:\n
preferences = box.KnowledgeBox_getDefaultPreferencesDict()\n
else:\n
preferences = {}\n
\n
if web_section_url is None:\n
web_section_url = preferences.get(\'web_section_url\', \'\') # XXX-JPS - Why do we have to do casting ? (used to be str()\n
......
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