Why is the following validation true even though the value is less than 1?
{“totalQty”:0,“validate”:true}
Why is the following validation true even though the value is less than 1?
{“totalQty”:0,“validate”:true}
Same as before. Placed file at dmxConnectLib/lib/validator.
Tested on 3.9.9 and 4b9.
ah, forgot to ask the server model, the file I’ve posted is for NodeJS. But if you have a dmxConnectLib folder then you probably use PHP or an other server model. Which one do you use?
Sorry should have mentioned the sever model. PHP
$value is an integer thus fails with is_string($value).
Original:
public function isValidNumberValue($value) { return isset($value) && is_string($value) && is_numeric($value); }
Fix:
public function isValidNumberValue($value) { return isset($value) && is_numeric($value); }
This has been fixed in Wappler 4 beta 12
This topic was automatically closed after 47 hours. New replies are no longer allowed.