1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-16 03:34:33 +02:00
This commit is contained in:
Ryan Cramer
2019-06-21 11:10:59 -04:00
parent 49d0348b4a
commit 35e3e4266a

View File

@@ -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) {