mirror of
https://github.com/processwire/processwire.git
synced 2025-08-17 12:10:45 +02:00
Fix issue processwire/processwire-issues#904
This commit is contained in:
@@ -657,8 +657,12 @@ abstract class Inputfield extends WireData implements Module {
|
|||||||
} else {
|
} else {
|
||||||
$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