Skip to content
Snippets Groups Projects
Commit f583d89b authored by totten's avatar totten
Browse files

CRM-13889 - CRM_Core_BAO_Dashboard - Fix test failure. Report error better.

Note: It looks like there was a merge error because some of the relevant
code was badly duplicated.
parent 167eb6bf
No related branches found
No related tags found
No related merge requests found
......@@ -308,8 +308,9 @@ class CRM_Core_BAO_Dashboard extends CRM_Core_DAO_Dashboard {
$contactID = $session->get('userID');
}
$session = CRM_Core_Session::singleton();
$contactID = $session->get('userID');
if (empty($contactID)) {
throw new RuntimeException("Failed to determine contact ID");
}
//we need to get existing dashletes, so we know when to update or insert
$contactDashlets = self::getContactDashlets(TRUE, $contactID);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment