Server connect validate using equal to error

Wappler Version : 3.9.4
Operating System : mac
Server Model: node
Database Type:
Hosting Type: custom

Expected behavior

The equal to validator should work AND it should allow for a value of 0 (zero).

Actual behavior

Error message:

{"status":"500","message":"param.replace is not a function","stack":"TypeError: param.replace is not a function\n    at App.equalTo (/home/dev-01/domains/mpp.dev.uniqueideas.com/nodeapp/lib/validator/core.js:234:46)\n    at Object.validateRule (/home/dev-01/domains/mpp.dev.uniqueideas.com/nodeapp/lib/validator/index.js:93:36)\n    at Object.validateData (/home/dev-01/domains/mpp.dev.uniqueideas.com/nodeapp/lib/validator/index.js:29:37)\n    at processTicksAndRejections (internal/process/task_queues.js:97:5)\n    at async App._exec (/home/dev-01/domains/mpp.dev.uniqueideas.com/nodeapp/lib/core/app.js:429:30)\n    at async App._exec (/home/dev-01/domains/mpp.dev.uniqueideas.com/nodeapp/lib/core/app.js:400:17)\n    at async App.exec (/home/dev-01/domains/mpp.dev.uniqueideas.com/nodeapp/lib/core/app.js:369:9)\n    at async App.define (/home/dev-01/domains/mpp.dev.uniqueideas.com/nodeapp/lib/core/app.js:359:9)"}

How to reproduce

Because evaluating to zero is not allowed, I am counting the number of records and adding 1, then comparing to see if that equals 1:

And yes, I chose a poor example as this can be done with a Does not exist in DB. :slight_smile:, but it still shows an example of the bug.

Community Page
Last updated: