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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
e284a969
Commit
e284a969
authored
Sep 15, 2020
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_officejs_appstore_base: handle Software Publication without lines
parent
abad7774
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
bt5/erp5_officejs_appstore_base/SkinTemplateItem/portal_skins/erp5_officejs_appstore_ui/SoftwareProduct_getRelatedSoftwarePublicationList.py
...e_ui/SoftwareProduct_getRelatedSoftwarePublicationList.py
+6
-4
No files found.
bt5/erp5_officejs_appstore_base/SkinTemplateItem/portal_skins/erp5_officejs_appstore_ui/SoftwareProduct_getRelatedSoftwarePublicationList.py
View file @
e284a969
...
@@ -5,9 +5,11 @@ software_publication_list = portal.portal_catalog(
...
@@ -5,9 +5,11 @@ software_publication_list = portal.portal_catalog(
**
kw
**
kw
)
)
for
software_publication
in
software_publication_list
:
for
software_publication
in
software_publication_list
:
software_publication_line
=
software_publication
.
objectValues
(
software_publication_line
_list
=
software_publication
.
objectValues
(
portal_type
=
"Software Publication Line"
portal_type
=
"Software Publication Line"
)[
0
]
)
if
software_publication_line_list
:
software_publication_line
=
software_publication_line_list
[
0
]
if
context
.
getRelativeUrl
()
==
software_publication_line
.
getResource
():
if
context
.
getRelativeUrl
()
==
software_publication_line
.
getResource
():
result
.
append
(
software_publication
)
result
.
append
(
software_publication
)
return
result
return
result
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