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:
parent
5aa4044a9d
commit
a55ed96f98
1 changed files with 2 additions and 1 deletions
|
@ -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';
|
||||
|
|
Loading…
Add table
Reference in a new issue