You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
example if i have a radio button that save 0 has no and 1 as yes.
So if user has selected NO that has value 0.
The "required" function will still takes it as "No input is provided" and returns the error.
The reuqired function uses empty() thus empty(0) also returns true.
so chnage line 218
from
if (empty($this->data[$v])) {
to
if (empty($this->data[$v]) && strlen($this->data[$v])==0) {
solves the problem
The text was updated successfully, but these errors were encountered:
example if i have a radio button that save 0 has no and 1 as yes.
So if user has selected NO that has value 0.
The "required" function will still takes it as "No input is provided" and returns the error.
The reuqired function uses empty() thus empty(0) also returns true.
so chnage line 218
from
if (empty($this->data[$v])) {
to
if (empty($this->data[$v]) && strlen($this->data[$v])==0) {
solves the problem
The text was updated successfully, but these errors were encountered: