Browse Source

removed commented out code

d9
ppound 4 years ago
parent
commit
e78dd2993f
  1. 6
      src/Controller/CalendarController.php

6
src/Controller/CalendarController.php

@ -171,9 +171,8 @@ class CalendarController extends ControllerBase {
} }
$results = array(); $results = array();
$ids = \Drupal::service('entity_type.manager')->getStorage('reserve_reservation')->getQuery() $ids = \Drupal::service('entity_type.manager')
//$ids = \Drupal::service('entity.query') ->getStorage('reserve_reservation')->getQuery()
// ->get('reserve_reservation')
->condition('status', TRUE) ->condition('status', TRUE)
->condition('reservation_date', $yyyy_mmdd . '%', 'like') ->condition('reservation_date', $yyyy_mmdd . '%', 'like')
->condition('reservation_ebundle', $ebundle) ->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.'); 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['#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'] = \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'); $variables['#date_picker'] = \Drupal::formBuilder()->getForm('Drupal\reserve\Form\CalendarDatePicker');
$field = reserve_category_fields($ebundle); $field = reserve_category_fields($ebundle);

Loading…
Cancel
Save