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
Leo Le Bouter
erp5
Commits
a038a43e
Commit
a038a43e
authored
Jul 23, 2020
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_corporate_identity: try to get 'en' logo if user language logo is not presented
parent
b4c6d186
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/Base_getTemplateProxyParameter.py
...erp5_corporate_identity/Base_getTemplateProxyParameter.py
+10
-3
No files found.
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/Base_getTemplateProxyParameter.py
View file @
a038a43e
...
...
@@ -299,13 +299,20 @@ if pass_parameter is not None and pass_source_data is not None:
use_language
=
context
.
getLanguage
()
or
"en"
except
AttributeError
:
use_language
=
"en"
return
populateImageDict
(
portal_object
.
portal_catalog
(
logo_list
=
portal_object
.
portal_catalog
(
portal_type
=
"Image"
,
language
=
use_language
,
validation_state
=
validation_state
,
reference
=
pass_source_data
))
)
if
not
logo_list
and
use_language
!=
"en"
:
logo_list
=
portal_object
.
portal_catalog
(
portal_type
=
"Image"
,
language
=
"en"
,
validation_state
=
validation_state
,
reference
=
pass_source_data
)
return
populateImageDict
(
logo_list
)
# ------------------------- Product (Website) --------------------------------
if
pass_parameter
==
"product"
:
...
...
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