Skip to content
Snippets Groups Projects
Verified Commit 80786ed8 authored by Christian Wach's avatar Christian Wach :soccer: Committed by Kevin Cristiano
Browse files

Use helper method for collecting Dashlet IDs

parent b3d75c3a
No related branches found
No related tags found
No related merge requests found
......@@ -367,9 +367,7 @@ class CRM_Core_BAO_Dashboard extends CRM_Core_DAO_Dashboard {
// Get the array of IDs.
$domainDashletIDs = [];
if ($domainDashlets['is_error'] == 0) {
foreach ($domainDashlets['values'] as $domainDashlet) {
$domainDashletIDs[] = $domainDashlet['id'];
}
$domainDashletIDs = CRM_Utils_Array::collect('id', $domainDashlets['values']);
}
// Restrict query to Dashlets in this domain.
......
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