From 27c4920165cc19730713da519f7b2cc3db237d0d Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Wed, 2 May 2018 14:39:08 +1000 Subject: [PATCH] test --- booking.variety_form.inc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/booking.variety_form.inc b/booking.variety_form.inc index f736860..7fa31b6 100644 --- a/booking.variety_form.inc +++ b/booking.variety_form.inc @@ -60,7 +60,7 @@ function booking_variety_regn_form($node, &$form_state) '#required' => TRUE, '#default_value' => isset($form_state['values'][$fieldname]) ? $form_state['values'][$fieldname] : 1, '#options' => _booking_get_variety_timeslot_options($timeslot->tid), - '#prefix' => '
', + '#prefix' => '
', '#suffix' => '
', ); } @@ -139,12 +139,12 @@ function booking_variety_session_callback($form, &$form_state) { //re-create the form element for this timeslot - $form['form']['variety-sessions'][$fieldname] = array( + $form['variety-sessions'][$fieldname] = array( '#type' => 'select', - '#title' => t('Variety Session: ' . $timeslot->booking_variety_time_descrip), + '#title' => t('Rebuilt Variety Session: ' . $timeslot->booking_variety_time_descrip), '#required' => TRUE, '#options' => $options, - '#prefix' => '
', + '#prefix' => '
', '#suffix' => '
', '#default_value' => 1, ); @@ -152,7 +152,7 @@ function booking_variety_session_callback($form, &$form_state) { //$form['variety-sessions'][$fieldname]['#options'] = $options; // Tell drupal to update the wrapper for this field - $commands[] = ajax_command_replace('#booking_variety_session_' . $timeslot->tid . 'wrapper', render($form['form']['variety-sessions'][$fieldname])); + $commands[] = ajax_command_replace('#booking_variety_session_' . $timeslot->tid . 'wrapper', render($form['variety-sessions'][$fieldname])); } $form_state['rebuild'] = TRUE;