Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alecs_myu
erp5
Commits
03a314cc
Commit
03a314cc
authored
Jan 04, 2016
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_knowledge_pad: ERP5Site_viewRandomPageGadget: prevent fail if no box is provided
(from Rafaels' changes)
parent
b6bc402d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_gadget/ERP5Site_viewRandomPageGadget.xml
...ortal_skins/erp5_gadget/ERP5Site_viewRandomPageGadget.xml
+6
-1
No files found.
bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_gadget/ERP5Site_viewRandomPageGadget.xml
View file @
03a314cc
...
@@ -79,7 +79,12 @@ if box_relative_url:\n
...
@@ -79,7 +79,12 @@ if box_relative_url:\n
# Get the preferences (some casting of preferences would \n
# Get the preferences (some casting of preferences would \n
# probably be a good thing here so that there is no need\n
# probably be a good thing here so that there is no need\n
# to cas them later)\n
# to cas them later)\n
preferences = box.KnowledgeBox_getDefaultPreferencesDict()\n
# \n
# Prevent fail if no box is provided. \n
if box is not None:\n
preferences = box.KnowledgeBox_getDefaultPreferencesDict()\n
else:\n
preferences = {}\n
\n
\n
if web_section_url is None:\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
web_section_url = preferences.get(\'web_section_url\', \'\') # XXX-JPS - Why do we have to do casting ? (used to be str()\n
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment