Browse Source

do not set a default booking name for privacy reasons

d10-dev
Paul Pound 4 months ago
parent
commit
1f2401284a
  1. 4
      reservation.inc

4
reservation.inc

@ -100,9 +100,9 @@ function reserve_form_reserve_reservation_form_alter(array &$form, FormStateInte
// set default Group Name as name of current user
$form['name']['widget'][0]['value']['#required'] = TRUE;
$form['name']['widget'][0]['value']['#default_value'] = $form['name']['widget'][0]['value']['#default_value'] ?
/*$form['name']['widget'][0]['value']['#default_value'] = $form['name']['widget'][0]['value']['#default_value'] ?
$form['name']['widget'][0]['value']['#default_value'] :
\Drupal::currentUser()->getDisplayName();
\Drupal::currentUser()->getDisplayName();*/
// set values taken from URL
$form['reservation_date']['widget'][0]['value']['#default_value'] = DrupalDateTime::createFromTimestamp(strtotime($yyyymmdd));

Loading…
Cancel
Save