Skip to content

Commit

Permalink
Update ShopPeriodReport.php (#815)
Browse files Browse the repository at this point in the history
Set the setHTML5 function of the DateField to false when using custom date formats.  Solves issue #764.
  • Loading branch information
AntonyThorpe authored Jan 17, 2024
1 parent 256121d commit 62db912
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Reports/ShopPeriodReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ public function parameterFields()
// When using silverware/calendar package, setting the date format breaks the admin interface. Leave default
// behavior as was, but allow the date format not to be set as a config override
if ($this->config()->get('disable_set_date_format') != true) {
$start->setHTML5(false);
$start->setDateFormat($dateformat);
$end->setHTML5(false);
$end->setDateFormat($dateformat);
}

Expand Down

0 comments on commit 62db912

Please sign in to comment.