From 61497c85ea7b49f0dbcc2640950d077f77a00014 Mon Sep 17 00:00:00 2001 From: owenbush <owenbush@2765259.no-reply.drupal.org> Date: Mon, 23 Mar 2020 09:38:34 -0600 Subject: [PATCH] Issue #3116930 by owenbush, the_glitch: Error message when deleting series --- recurring_events.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recurring_events.module b/recurring_events.module index 174c4fdb..6b2b43ba 100644 --- a/recurring_events.module +++ b/recurring_events.module @@ -386,7 +386,7 @@ function recurring_events_eventseries_type_delete(EntityInterface $entity) { } if (\Drupal::moduleHandler()->moduleExists('recurring_events_registration')) { - $registrant_type = \Drupal::entityTypeManager()->getStorage('registrant_type')->load($id); + $registrant_type = \Drupal::entityTypeManager()->getStorage('registrant_type')->load($entity->id()); if (!empty($registrant_type)) { $query = \Drupal::entityQuery('field_inheritance'); $and_destination = $query->andConditionGroup() -- GitLab