mirror of
https://github.com/processwire/processwire.git
synced 2025-08-11 17:24:46 +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'],
|
'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
|
// empty value
|
||||||
$this->setAttribute('value', '');
|
$this->setAttribute('value', '');
|
||||||
return '';
|
return '';
|
||||||
|
Reference in New Issue
Block a user