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
Paul Graydon
erp5
Commits
13c536d2
Commit
13c536d2
authored
Feb 14, 2020
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Form.ProxyField: Fix acquisition path when overriding skin mechanism.
parent
6909d308
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
product/ERP5Form/ProxyField.py
product/ERP5Form/ProxyField.py
+10
-1
No files found.
product/ERP5Form/ProxyField.py
View file @
13c536d2
...
...
@@ -460,7 +460,16 @@ class ProxyField(ZMIField):
if
candidate_folder
is
not
None
:
proxy_form
=
candidate_folder
.
_getOb
(
form_id
,
None
)
if
proxy_form
is
not
None
:
proxy_field
=
proxy_form
.
_getOb
(
field_id
,
None
)
# proxy_form was retrieved outside of skin magic, fake the
# acquisition context skin magic would have produced so it
# works the same (ex: for acquired permissions).
# The drawback is that the form the field is actually comming
# from will be harder to identify, but that's just how skins
# work.
proxy_field
=
aq_base
(
proxy_form
).
__of__
(
portal
).
_getOb
(
field_id
,
None
,
)
if
proxy_field
is
not
None
:
break
...
...
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