Skip to content

Commit

Permalink
Ensure Dashboard domain ID is set even when passed as a param
Browse files Browse the repository at this point in the history
  • Loading branch information
christianwach committed Sep 11, 2019
1 parent b999b43 commit bf1fea6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CRM/Core/BAO/Dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,8 @@ public static function addDashlet(&$params) {
// Assign domain before search to allow identical dashlets in different domains.
if (empty($params['domain_id'])) {
$dashlet->domain_id = CRM_Core_Config::domainID();
} else {
$dashlet->domain_id = CRM_Utils_Array::value('domain_id', $params);
}

// Try and find an existing dashlet - it will be updated if found.
Expand Down

0 comments on commit bf1fea6

Please sign in to comment.