diff --git a/reserve.series.inc b/reserve.series.inc index 4edb9d6..bf075ac 100644 --- a/reserve.series.inc +++ b/reserve.series.inc @@ -124,7 +124,7 @@ function reserve_reserve_reservation_update($entity) { $rid = $entity->reservable_id->getString(); $rtype = $entity->reservable_content_type->getString(); $ebundle = $rtype . '.' . \Drupal::entityTypeManager() - ->getStorage($rtype)->load($id)->bundle(); + ->getStorage($rtype)->load($rid)->bundle(); $private = $entity->reservation_private->getString(); // grab all reservations in this series except the one being submitted