FSN#37749 API2 waarschuwen bij POST van record array

svn path=/Website/trunk/; revision=30750
This commit is contained in:
Jos Groot Lipman
2016-09-19 08:43:06 +00:00
parent 7424644324
commit e170187b58

View File

@@ -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