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
Léo-Paul Géneau
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
Hide 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(
**
kw
)
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"
)[
0
]
if
context
.
getRelativeUrl
()
==
software_publication_line
.
getResource
():
result
.
append
(
software_publication
)
)
if
software_publication_line_list
:
software_publication_line
=
software_publication_line_list
[
0
]
if
context
.
getRelativeUrl
()
==
software_publication_line
.
getResource
():
result
.
append
(
software_publication
)
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