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
1
Merge Requests
1
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
Cédric Le Ninivin
erp5
Commits
a70e1790
Commit
a70e1790
authored
May 29, 2023
by
Cédric Le Ninivin
Committed by
Titouan Soulard
Apr 03, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_api_style: post update status if status under 400
parent
88bb797a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ERP5Site_asjIOStyle.py
...teItem/portal_skins/erp5_api_style/ERP5Site_asjIOStyle.py
+1
-1
No files found.
bt5/erp5_api_style/SkinTemplateItem/portal_skins/erp5_api_style/ERP5Site_asjIOStyle.py
View file @
a70e1790
...
@@ -106,7 +106,7 @@ for erp5_action_key in erp5_action_dict.keys():
...
@@ -106,7 +106,7 @@ for erp5_action_key in erp5_action_dict.keys():
match
=
True
match
=
True
# If an object is created, 201 code is exptected
# If an object is created, 201 code is exptected
if
mode
==
"post"
:
if
mode
==
"post"
:
if
response
.
getStatus
()
==
2
00
:
if
response
.
getStatus
()
<
4
00
:
response
.
setStatus
(
201
)
response
.
setStatus
(
201
)
# If not search, job is done and we can return result
# If not search, job is done and we can return result
if
mode
!=
"allDocs"
:
if
mode
!=
"allDocs"
:
...
...
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