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
Xavier Thompson
erp5
Commits
6b4a8113
Commit
6b4a8113
authored
Jun 02, 2014
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
relation field: fix error when displayed along with a matrixbox
parent
5c480b0b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
product/ERP5Form/MultiRelationField.py
product/ERP5Form/MultiRelationField.py
+8
-1
No files found.
product/ERP5Form/MultiRelationField.py
View file @
6b4a8113
...
...
@@ -413,7 +413,14 @@ $(document).ready(function() {
Render link to the related object.
"""
html_string
=
''
here
=
REQUEST
.
get
(
'cell'
,
self
.
_getContextValue
(
field
,
REQUEST
))
here
=
self
.
_getContextValue
(
field
,
REQUEST
)
# If we this relation field is used as a listbox/matrixbox editable
# field, then the context of this cell is set in REQUEST. XXX this is not
# 100% reliable way, maybe we need something to know that the field is
# beeing rendered as an editable field.
cell
=
REQUEST
.
get
(
'cell'
)
if
cell
is
not
None
:
here
=
cell
portal_url
=
here
.
getPortalObject
().
portal_url
portal_url_string
=
portal_url
()
if
(
value
not
in
((),
[],
None
,
''
))
and
\
...
...
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