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
Labels
Merge Requests
141
Merge Requests
141
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
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
0b0d4012
Commit
0b0d4012
authored
Mar 11, 2019
by
Yusei Tahara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_core/Base_edit: Use make_query to encode URL parameters.
parent
2a57bc72
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
19 deletions
+16
-19
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_edit.py
...core/SkinTemplateItem/portal_skins/erp5_core/Base_edit.py
+16
-19
No files found.
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_edit.py
View file @
0b0d4012
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
from the context update logic
from the context update logic
"""
"""
from
Products.Formulator.Errors
import
FormValidationError
from
Products.Formulator.Errors
import
FormValidationError
from
ZTUtils
import
make_query
request
=
container
.
REQUEST
request
=
container
.
REQUEST
portal
=
context
.
getPortalObject
()
portal
=
context
.
getPortalObject
()
...
@@ -258,25 +259,21 @@ if context.REQUEST.get('is_web_mode', False) and \
...
@@ -258,25 +259,21 @@ if context.REQUEST.get('is_web_mode', False) and \
not
editable_mode
:
not
editable_mode
:
form_id
=
'view'
form_id
=
'view'
if
not
selection_index
:
redirect_url_kw
=
dict
(
redirect_url
=
'%s/%s?ignore_layout:int=%s&editable_mode:int=%s&portal_status_message=%s'
%
(
ignore_layout
=
ignore_layout
,
context
.
absolute_url
(),
editable_mode
=
editable_mode
,
form_id
,
portal_status_message
=
message
ignore_layout
,
)
editable_mode
,
if
selection_index
:
message
)
redirect_url_kw
.
update
(
selection_index
=
selection_index
,
selection_name
=
selection_name
else
:
)
redirect_url
=
'%s/%s?selection_index=%s&selection_name=%s&ignore_layout:int=%s&editable_mode=%s&portal_status_message=%s'
%
(
redirect_url
=
'%s/%s?%s'
%
(
context
.
absolute_url
(),
context
.
absolute_url
(),
form_id
,
form_id
,
selection_index
,
make_query
(
**
redirect_url_kw
)
selection_name
,
)
ignore_layout
,
editable_mode
,
message
)
result
=
request
[
'RESPONSE'
].
redirect
(
redirect_url
)
result
=
request
[
'RESPONSE'
].
redirect
(
redirect_url
)
...
...
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