Skip to content

Commit 8874332

Browse files
milindsinghmage2pratik
authored andcommitted
Issue fixed #20128 : Date range returns same start and end date
1 parent 3345ec4 commit 8874332

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Reports/Model/ResourceModel/Order/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ public function getDateRange($range, $customStart, $customEnd, $returnObjects =
445445
break;
446446

447447
case 'custom':
448-
$dateStart = $customStart ? $customStart : $dateEnd;
448+
$dateStart = $customStart ? $customStart : $dateStart;
449449
$dateEnd = $customEnd ? $customEnd : $dateEnd;
450450
break;
451451

0 commit comments

Comments
 (0)