|
|
|
@ -36,7 +36,8 @@ function reserve_reserve_reservation_insert($entity) {
|
|
|
|
|
$length = $entity->reservation_length->getString(); |
|
|
|
|
$rid = $entity->reservable_id->getString(); |
|
|
|
|
$rtype = $entity->reservable_content_type->getString(); |
|
|
|
|
$ebundle = $rtype . '.' . entity_load($rtype, $rid)->bundle(); |
|
|
|
|
$ebundle = $rtype . '.' . \Drupal::entityTypeManager() |
|
|
|
|
->getStorage($rtype)->load($id)->bundle(); |
|
|
|
|
$day = date('l', strtotime($start)); |
|
|
|
|
|
|
|
|
|
$msg = ''; |
|
|
|
@ -122,7 +123,8 @@ function reserve_reserve_reservation_update($entity) {
|
|
|
|
|
$length = $entity->reservation_length->getString(); |
|
|
|
|
$rid = $entity->reservable_id->getString(); |
|
|
|
|
$rtype = $entity->reservable_content_type->getString(); |
|
|
|
|
$ebundle = $rtype . '.' . entity_load($rtype, $rid)->bundle(); |
|
|
|
|
$ebundle = $rtype . '.' . \Drupal::entityTypeManager() |
|
|
|
|
->getStorage($rtype)->load($id)->bundle(); |
|
|
|
|
$private = $entity->reservation_private->getString(); |
|
|
|
|
|
|
|
|
|
// grab all reservations in this series except the one being submitted |
|
|
|
|