Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure Dashboard respects multiple Domains #15099

Merged
merged 1 commit into from
Aug 30, 2019

Conversation

christianwach
Copy link
Member

Overview

Please see the issue on Lab for details.

Before

  • The CiviCRM Dashboard does not respect multiple Domains and shows duplicate Dashlets.
  • The CiviCRM API updates the domain_id of an existing Dashlet instead of creating a new Dashlet for that Domain.

After

  • The CiviCRM Dashboard respects multiple Domains and shows unique Dashlets.
  • The CiviCRM API creates a new Dashlet for that Domain.

@civibot
Copy link

civibot bot commented Aug 22, 2019

(Standard links)

@civibot civibot bot added the master label Aug 22, 2019
@eileenmcnaughton
Copy link
Contributor

@seamuslee001 I'm +1 on this - just pinging you to have a chance to input

@eileenmcnaughton eileenmcnaughton added the merge ready PR will be merged after a few days if there are no objections label Aug 23, 2019
@@ -109,6 +109,7 @@ public static function getContactDashlets($contactID = NULL) {
'contact_id' => $contactID,
'is_active' => 1,
'dashboard_id.is_active' => 1,
'dashboard_id.domain_id' => CRM_Core_Config::domainID(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@christianwach do we need to cope with dashboards that don't have a domain_id?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@seamuslee001 There should always be a domain_id assigned to each dashlet when they are created. Personally I'd consider dashlets without a domain_id to be orphaned.

@seamuslee001
Copy link
Contributor

I'm ok with this and makes sense to me merging

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
master merge ready PR will be merged after a few days if there are no objections
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants