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
It happens just with values 0, '0' and '' (actually all values that are interpreted as false in PHP).
In the tag.zep file, the protected method "_inputFieldChecked", a condition causes the problem (lines 539 and 549):
if value && currentValue == value {
let params["checked"] = "checked";
}
/**
* Evaluate the value in POST
*/
if value {
let params["checked"] = "checked";
}
The condition "if value" with those values is not working properly (never enters in the condition).
I should be able to create Radio fields with these default values without problem.
It should be like in PHP :
if (isset($value))
It would be great if you could fixed it.
Thanks!
Jeff
The text was updated successfully, but these errors were encountered:
Hello,
Using PHP 5.6.2, when I set a default value to 0, no radio fields are checked.
When I set my radio fields in the view:
No radio fields are checked.
It happens just with values 0, '0' and '' (actually all values that are interpreted as false in PHP).
In the tag.zep file, the protected method "_inputFieldChecked", a condition causes the problem (lines 539 and 549):
The condition "if value" with those values is not working properly (never enters in the condition).
I should be able to create Radio fields with these default values without problem.
It should be like in PHP :
It would be great if you could fixed it.
Thanks!
Jeff
The text was updated successfully, but these errors were encountered: