CRM-19534 - use better wrapper for getting logged in user contact id.
authorJamie McClelland <jm@mayfirst.org>
Tue, 18 Oct 2016 19:07:12 +0000 (15:07 -0400)
committerjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Mon, 28 Nov 2016 12:03:53 +0000 (17:33 +0530)
CRM/Core/BAO/Dashboard.php

index 84b15097184836dc7f242fe9b29a6d87f86ea985..f5ea0ba9f79f51d4fdf4b24cae342b7b2c9baf31 100644 (file)
@@ -440,6 +440,7 @@ class CRM_Core_BAO_Dashboard extends CRM_Core_DAO_Dashboard {
     else {
       //Get the id of Logged in User
       $session = CRM_Core_Session::singleton();
+      $contactID = CRM_Core_Session::singleton()->getLoggedInContactID();
       $contactID = $session->get('userID');
       if (!empty($contactID)) {
         $contactIDs[$contactID] = NULL;