FCLT#57337 API2 heel iets minder streng datatypes controleren

svn path=/Website/branches/v2019.1/; revision=42010
This commit is contained in:
Jos Groot Lipman
2019-04-09 09:47:47 +00:00
parent ec0197ca4a
commit 85ac9df963

View File

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