mirror of
https://github.com/processwire/processwire.git
synced 2025-08-10 00:37:02 +02:00
Fix issue processwire/processwire-issues#1241
This commit is contained in:
@@ -165,7 +165,7 @@ class InputfieldDatetimeSelect extends InputfieldDatetimeType {
|
||||
'day' => (int) $input[$name . '__d'],
|
||||
);
|
||||
|
||||
if(!strlen(trim("$a[month]$a[day]$a[year]"))) {
|
||||
if(!strlen(trim("$a[month]$a[day]$a[year]", "0"))) {
|
||||
// empty value
|
||||
$this->setAttribute('value', '');
|
||||
return '';
|
||||
|
Reference in New Issue
Block a user