X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCase%2FPage%2FDashBoard.php;h=fa66d50816e909a5fa0383d6c674afd634ae9c6f;hb=ef10e0b52408ba266239a859756d757a10348228;hp=eaba3fa7c59feafd720fec5530a5afb118af5201;hpb=53128a92d19ec8f0526b48a4a0c044bb0d671d84;p=civicrm-core.git diff --git a/CRM/Case/Page/DashBoard.php b/CRM/Case/Page/DashBoard.php index eaba3fa7c5..fa66d50816 100644 --- a/CRM/Case/Page/DashBoard.php +++ b/CRM/Case/Page/DashBoard.php @@ -1,9 +1,9 @@ $value) { + if(strtotime($value['case_scheduled_activity_date']) < time()) { + $upcoming[$key]['activity_status'] = 'status-overdue'; + } + } $this->assign('casesSummary', $summary); if (!empty($upcoming)) { $this->assign('upcomingCases', $upcoming); @@ -98,7 +102,6 @@ class CRM_Case_Page_DashBoard extends CRM_Core_Page { if (!empty($recent)) { $this->assign('recentCases', $recent); } - $this->assign('includeWysiwygEditor', TRUE); } /** @@ -106,12 +109,10 @@ class CRM_Case_Page_DashBoard extends CRM_Core_Page { * it decides the which action has to be taken for the page. * * return null - * @access public */ - function run() { + public function run() { $this->preProcess(); return parent::run(); } } -