From e78dd2993f6a9f54317cb585c46a0e91231eed72 Mon Sep 17 00:00:00 2001 From: ppound Date: Mon, 12 Jul 2021 13:30:33 -0300 Subject: [PATCH] removed commented out code --- src/Controller/CalendarController.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Controller/CalendarController.php b/src/Controller/CalendarController.php index 5913f7f..a2a3c45 100644 --- a/src/Controller/CalendarController.php +++ b/src/Controller/CalendarController.php @@ -171,9 +171,8 @@ class CalendarController extends ControllerBase { } $results = array(); - $ids = \Drupal::service('entity_type.manager')->getStorage('reserve_reservation')->getQuery() - //$ids = \Drupal::service('entity.query') - // ->get('reserve_reservation') + $ids = \Drupal::service('entity_type.manager') + ->getStorage('reserve_reservation')->getQuery() ->condition('status', TRUE) ->condition('reservation_date', $yyyy_mmdd . '%', 'like') ->condition('reservation_ebundle', $ebundle) @@ -359,7 +358,6 @@ class CalendarController extends ControllerBase { t('To make a reservation, click on the desired time/day in the calendar below. You will be asked to login.'); $variables['#arrow'] = base_path() . drupal_get_path('module', 'reserve') . '/images/arrow-icon.png'; $variables['#date'] = \Drupal::service('date.formatter')->format(strtotime($month . ' ' . $xday . ', ' . $year), 'custom', 'l, F d, Y'); - //$variables['#date'] = format_date(strtotime($month . ' ' . $xday . ', ' . $year), 'custom', 'l, F d, Y'); $variables['#date_picker'] = \Drupal::formBuilder()->getForm('Drupal\reserve\Form\CalendarDatePicker'); $field = reserve_category_fields($ebundle);