Skip to content

Commit d96ba5a

Browse files
gowrav-vishwakarmaromaninsh
authored andcommitted
DateTime is object and working on same object is replacing both value… (#834)
* DateTime is object and working on same object is replacing both values to be same This sets $d1 and $d2 both to "YYYY-mm-dd 23:59:59" ... * Apply fixes from StyleCI
1 parent 6be1983 commit d96ba5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TableColumn/FilterModel/TypeDatetime.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public function setConditionForModel($m)
9292
break;
9393
case '!=':
9494
case '=':
95-
$d1 = $this->getDatetime($filter['value'])->setTime(0, 0, 0);
95+
$d1 = clone $this->getDatetime($filter['value'])->setTime(0, 0, 0);
9696
$d2 = $this->getDatetime($filter['value'])->setTime(23, 59, 59);
9797
if ($d2 >= $d1) {
9898
$value = $m->persistence->typecastSaveField($m->getField($filter['name']), $d1);

0 commit comments

Comments
 (0)