Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
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
Romain Courteaud
erp5_rtl_support
Commits
8af1da02
Commit
8af1da02
authored
Mar 09, 2016
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ListBox: support rendering empty item as user's input in multi item widget having default values.
parent
ef488b49
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
product/ERP5Form/ListBox.py
product/ERP5Form/ListBox.py
+6
-0
No files found.
product/ERP5Form/ListBox.py
View file @
8af1da02
...
...
@@ -2461,6 +2461,12 @@ class ListBoxHTMLRendererLine(ListBoxRendererLine):
editable_field
.
generate_field_key
(
key
=
key
),
request
)
except
(
KeyError
,
AttributeError
):
display_value
=
original_value
if
isinstance
(
editable_field
.
widget
,
Widget
.
MultiItemsWidget
)
and
\
not
isinstance
(
display_value
,
list
):
if
display_value
:
display_value
=
[
display_value
]
else
:
display_value
=
[]
# If error on current field, we should display message
if
key
in
error_dict
:
error_text
=
error_dict
[
key
].
error_text
...
...
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