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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eteri
erp5
Commits
3bcbda11
Commit
3bcbda11
authored
Oct 30, 2019
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_hal_json_style] Listbox editable field could be disabled with a TALES expression
parent
1baebc5d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
bt5/erp5_hal_json_style/SkinTemplateItem/portal_skins/erp5_hal_json_style/ERP5Document_getHateoas.py
...rtal_skins/erp5_hal_json_style/ERP5Document_getHateoas.py
+3
-0
No files found.
bt5/erp5_hal_json_style/SkinTemplateItem/portal_skins/erp5_hal_json_style/ERP5Document_getHateoas.py
View file @
3bcbda11
...
...
@@ -1934,6 +1934,9 @@ def calculateHateoas(is_portal=None, is_site_root=None, traversed_document=None,
for
select
in
select_list
:
contents_item
[
select
]
=
{}
editable_field
=
editable_field_dict
.
get
(
select
,
None
)
if
(
editable_field
is
not
None
)
and
(
not
editable_field
.
get_value
(
'enabled'
,
REQUEST
=
REQUEST
)):
# The editable field could be disabled with a TALES expression, depending on the cell context
editable_field
=
None
default_field_value
=
Listbox_getBrainValue
(
brain
,
brain_document
,
...
...
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