Skip to content

Commit

Permalink
Merge pull request #62 from kitodo/CMR-320
Browse files Browse the repository at this point in the history
fixed maxDayFormMonth override
  • Loading branch information
claussni authored Jan 12, 2018
2 parents 033b402 + eeae8a5 commit e641bcd
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 e641bcd

Please sign in to comment.