FSN#37749 API2 waarschuwen bij POST van record array
svn path=/Website/trunk/; revision=30750
This commit is contained in:
@@ -268,6 +268,8 @@ api2_rest = {
|
||||
}
|
||||
else if (model.record_name in jsondata) // een enkel record
|
||||
{
|
||||
if (jsondata[model.record_name] instanceof Array)
|
||||
abort_with_warning("API2 error: {0} should be single record only.".format(method));
|
||||
var result = model["REST_" + method]( requestparams, jsondata[model.record_name], key );
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user