mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
Refactoring CalendarEventSearchEngine to fit new null handling of AphrontFormDateControlValue
Summary: Ref T4393, Refactoring CalendarEventSearchEngine to fit new null handling of AphrontFormDateControlValue Test Plan: Use calendar query for day view, expect no php errors Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: Korvin, epriestley Maniphest Tasks: T4393 Differential Revision: https://secure.phabricator.com/D12701
This commit is contained in:
parent
2c5760d0ef
commit
c02db2d15c
1 changed files with 2 additions and 2 deletions
|
@ -428,9 +428,9 @@ final class PhabricatorCalendarEventSearchEngine
|
|||
$start_month = $this->calendarMonth;
|
||||
$start_day = $this->calendarDay;
|
||||
} else {
|
||||
$epoch = $query->getParameter('rangeStart');
|
||||
$epoch = $this->getDateFrom($query)->getEpoch();
|
||||
if (!$epoch) {
|
||||
$epoch = $query->getParameter('rangeEnd');
|
||||
$epoch = $this->getDateTo($query)->getEpoch();
|
||||
if (!$epoch) {
|
||||
$epoch = time();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue