CiviVisualise trying to inject its no 4 snippet into users dashboards on Drupal module enable?
Created by: michau
It's a kind of weird situation, when after enabling Drupal module, I get "$ManagedEntities_failed"
with
[error_code] => constraint violation
[sql] =>
INSERT INTO civicrm_dashboard_contact ( dashboard_id, contact_id )
VALUES ( 6, 2 ), ( 6, 3 ), ( 6, 50 ), ( 6, 202 ), ( 6, 297 ), ( 6, 299 ), ( 6, 3678 ), ( 6, 8467 ), ( 6, 13538 ), ( 6, 68342 ), ( 6, 89067 ), ( 6, 117585 ) [nativecode=1452 ** Cannot add or update a child row: a foreign key constraint fails (`crm_civi`.`civicrm_dashboard_contact`, CONSTRAINT `FK_civicrm_dashboard_contact_dashboard_id` FOREIGN KEY (`dashboard_id`) REFERENCES `civicrm_dashboard` (`id`) ON DELETE CASCADE)]
I blame CiviVisualize because the api call is:
[entity] => Dashboard
[action] => create
[params] => Array
(
[id] => 6
[is_active] => 1
[version] => 3
[name] => dataviz_contact
[label] => Dataviz of contacts
[url] => /civicrm/dataviz/contacts?snippet=4
)
I'll investigate further.