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
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
Show 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
,
editable_mode
=
editable_mode
,
portal_status_message
=
message
)
if
selection_index
:
redirect_url_kw
.
update
(
selection_index
=
selection_index
,
selection_name
=
selection_name
)
redirect_url
=
'%s/%s?%s'
%
(
context
.
absolute_url
(),
context
.
absolute_url
(),
form_id
,
form_id
,
ignore_layout
,
make_query
(
**
redirect_url_kw
)
editable_mode
,
)
message
)
else
:
redirect_url
=
'%s/%s?selection_index=%s&selection_name=%s&ignore_layout:int=%s&editable_mode=%s&portal_status_message=%s'
%
(
context
.
absolute_url
(),
form_id
,
selection_index
,
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