1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-30 08:28:20 +01:00

Month views with two instances of the same month day number highlight both as 'today'.

Summary: Fixes T8334, Month views with two instances of the same month day number highlight both as 'today'.

Test Plan: Open May, only today 27th should be highlighted

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin, epriestley

Maniphest Tasks: T8334

Differential Revision: https://secure.phabricator.com/D13044
This commit is contained in:
lkassianik 2015-05-27 17:21:18 -07:00
parent 5aa4044a9d
commit a55ed96f98

View file

@ -228,7 +228,8 @@ final class PHUICalendarMonthView extends AphrontView {
$cell_day = null;
}
if ($date && $date->format('j') == $this->day) {
if ($date && $date->format('j') == $this->day &&
$date->format('m') == $this->month) {
$today_class = 'phui-calendar-today-slot phui-calendar-today';
} else {
$today_class = 'phui-calendar-today-slot';