Skip to content

Commit

Permalink
fixed maxDayFormMonth override
Browse files Browse the repository at this point in the history
  • Loading branch information
ruegamer committed Jan 10, 2018
1 parent c59e89e commit eeae8a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Controller/AbstractSearchController.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ public function convertFormDate($date, $fillMax = false)

$dateTime->setDate($year, $month, $day);

if ($fillMax) {
if ($fillMax && !isset($date[2])) {
$maxDayFormMonth = $dateTime->format('t');
$dateTime->setDate($year, $month, $maxDayFormMonth);
}
Expand Down

0 comments on commit eeae8a5

Please sign in to comment.