mirror of
https://github.com/processwire/processwire.git
synced 2025-08-16 03:34:33 +02:00
Fix issue processwire/processwire-issues#904
This commit is contained in:
@@ -658,7 +658,11 @@ abstract class Inputfield extends WireData implements Module {
|
|||||||
$keys = array($key);
|
$keys = array($key);
|
||||||
}
|
}
|
||||||
|
|
||||||
$booleanValue = is_bool($value) ? $value : null;
|
if(is_bool($value) && !in_array($key, array('name', 'id', 'class', 'value', 'type'))) {
|
||||||
|
$booleanValue = $value;
|
||||||
|
} else {
|
||||||
|
$booleanValue = null;
|
||||||
|
}
|
||||||
|
|
||||||
foreach($keys as $key) {
|
foreach($keys as $key) {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user