1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-26 16:52: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:
lkassianik 2015-05-04 11:38:21 -07:00
parent 2c5760d0ef
commit c02db2d15c

View file

@ -428,9 +428,9 @@ final class PhabricatorCalendarEventSearchEngine
$start_month = $this->calendarMonth; $start_month = $this->calendarMonth;
$start_day = $this->calendarDay; $start_day = $this->calendarDay;
} else { } else {
$epoch = $query->getParameter('rangeStart'); $epoch = $this->getDateFrom($query)->getEpoch();
if (!$epoch) { if (!$epoch) {
$epoch = $query->getParameter('rangeEnd'); $epoch = $this->getDateTo($query)->getEpoch();
if (!$epoch) { if (!$epoch) {
$epoch = time(); $epoch = time();
} }