FCLT#57337 API2 heel iets minder streng datatypes controleren
svn path=/Website/branches/v2019.1/; revision=42010
This commit is contained in:
@@ -1584,6 +1584,8 @@ function _validateJsondata(jsondata, model)
|
||||
case "number":
|
||||
case "currency":
|
||||
case "float":
|
||||
if (typeof data === "string" && data.match(/^\d+$/)) // "resroom": "823" staan we nog wel toe
|
||||
data = parseInt(data, 10);
|
||||
if (typeof data === "number" && isFinite(data))
|
||||
valid = true;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user