fixed data bug in hypermedia
This commit is contained in:
@@ -276,6 +276,8 @@ class Collection(object):
|
|||||||
table = db[tablename]
|
table = db[tablename]
|
||||||
if 'json' in request.env.content_type:
|
if 'json' in request.env.content_type:
|
||||||
data = request.post_vars.data
|
data = request.post_vars.data
|
||||||
|
else:
|
||||||
|
data = request.post_vars
|
||||||
if request.get_vars or len(request.args)>1: # update
|
if request.get_vars or len(request.args)>1: # update
|
||||||
# ADD validate fields and return error
|
# ADD validate fields and return error
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user