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
56ccb491
Commit
56ccb491
authored
Jan 15, 2020
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! rewrite anonymous support in selection.
parent
1cc2c2db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
product/ERP5Form/ListBox.py
product/ERP5Form/ListBox.py
+5
-2
No files found.
product/ERP5Form/ListBox.py
View file @
56ccb491
...
@@ -1143,8 +1143,8 @@ class ListBoxRenderer:
...
@@ -1143,8 +1143,8 @@ class ListBoxRenderer:
# (i.e. do not update parameters in listboxes intended to show a previously defined selection.
# (i.e. do not update parameters in listboxes intended to show a previously defined selection.
listbox_prefix
=
'%s_'
%
self
.
getId
()
listbox_prefix
=
'%s_'
%
self
.
getId
()
for
k
,
v
in
self
.
request
.
form
.
iteritems
():
for
k
,
v
in
self
.
request
.
form
.
iteritems
():
# Ignore
parameters for other listboxes and
selection keys.
# Ignore selection keys.
if
'listbox_'
in
k
or
k
.
endswith
(
'selection_key'
):
if
k
.
endswith
(
'selection_key'
):
continue
continue
elif
k
.
startswith
(
listbox_prefix
):
elif
k
.
startswith
(
listbox_prefix
):
k
=
k
[
len
(
listbox_prefix
):]
k
=
k
[
len
(
listbox_prefix
):]
...
@@ -1153,6 +1153,9 @@ class ListBoxRenderer:
...
@@ -1153,6 +1153,9 @@ class ListBoxRenderer:
# will limit the contents for the selection.
# will limit the contents for the selection.
if
k
!=
'uid'
:
if
k
!=
'uid'
:
params
[
k
]
=
v
params
[
k
]
=
v
elif
'listbox_'
in
k
:
# Ignore parameters for other listboxes
continue
else
:
else
:
params
[
k
]
=
v
params
[
k
]
=
v
for
k
,
v
in
self
.
getDefaultParamList
():
for
k
,
v
in
self
.
getDefaultParamList
():
...
...
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