Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Romain Courteaud
erp5_rtl_support
Commits
79aa7760
Commit
79aa7760
authored
Oct 19, 2016
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_ci_slideshow: fix no related object raises on WebPage_viewAsWeb
parent
4a1e76ef
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
bt5/erp5_ci_slideshow/SkinTemplateItem/portal_skins/erp5_ci_slideshow/WebPage_viewAsWeb.py
...eItem/portal_skins/erp5_ci_slideshow/WebPage_viewAsWeb.py
+3
-2
No files found.
bt5/erp5_ci_slideshow/SkinTemplateItem/portal_skins/erp5_ci_slideshow/WebPage_viewAsWeb.py
View file @
79aa7760
...
@@ -60,6 +60,7 @@ def getThemeFromFirstFollowUpProduct(reference):
...
@@ -60,6 +60,7 @@ def getThemeFromFirstFollowUpProduct(reference):
if
category
.
find
(
product_match_string
)
>
1
:
if
category
.
find
(
product_match_string
)
>
1
:
relative_url
=
category
.
split
(
"follow_up/"
)[
1
]
relative_url
=
category
.
split
(
"follow_up/"
)[
1
]
category_object
=
portal
.
portal_catalog
(
relative_url
=
relative_url
,
limit
=
1
)
category_object
=
portal
.
portal_catalog
(
relative_url
=
relative_url
,
limit
=
1
)
if
len
(
category_object
)
>
0
:
category_title
=
category_object
[
0
].
getTitle
()
category_title
=
category_object
[
0
].
getTitle
()
theme
=
category_title
.
split
(
software_match_string
)[
0
].
lower
()
theme
=
category_title
.
split
(
software_match_string
)[
0
].
lower
()
...
...
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