Merge pull request #19145 from homer8173/patch-26

FIX #18914
This commit is contained in:
Laurent Destailleur 2021-10-23 16:07:56 +02:00 committed by GitHub
commit 35b862dd1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -188,7 +188,7 @@ if ($date && $dateIsValid) {
if ($mode == 'future') {
$sql .= " AND sm.datem <= '".$db->idate($dateendofday)."'";
} else {
$sql .= " AND sm.datem >= '".$db->idate($date)."'";
$sql .= " AND sm.datem >= '".$db->idate($dateendofday)."'";
}
if ($productid > 0) {
$sql .= " AND sm.fk_product = ".((int) $productid);