debug
This commit is contained in:
@@ -665,9 +665,7 @@ function booking_variety_regn_edit_form($node, &$form_state, $nid)
|
|||||||
'#markup' => $prefix,
|
'#markup' => $prefix,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$form['variety-sessions'] = array(
|
$form['variety-sessions'] = array(
|
||||||
'#type' => 'fieldset',
|
'#type' => 'fieldset',
|
||||||
'#title' => 'Select Variety Sessions',
|
'#title' => 'Select Variety Sessions',
|
||||||
@@ -740,7 +738,7 @@ function booking_variety_regn_edit_form_submit($form, &$form_state) {
|
|||||||
|
|
||||||
//if we're deleting, add the confirmation to the form if it hasn't been defined yet
|
//if we're deleting, add the confirmation to the form if it hasn't been defined yet
|
||||||
if($form_state['values']['op'] == 'Delete Session Registration' && (!isset($form_state['storage']['confirm']))) {
|
if($form_state['values']['op'] == 'Delete Session Registration' && (!isset($form_state['storage']['confirm']))) {
|
||||||
//watchdog('booking_debug', "<pre>Variety session deletion confirmation being set:\n@info</pre>", array('@info' => print_r( $form_state, true)));
|
watchdog('booking_debug', "<pre>Variety session registration deletion confirmation being set:\n@info</pre>", array('@info' => print_r( $form_state, true)));
|
||||||
$form_state['storage']['confirm'] = TRUE;
|
$form_state['storage']['confirm'] = TRUE;
|
||||||
$form_state['rebuild'] = TRUE;
|
$form_state['rebuild'] = TRUE;
|
||||||
}
|
}
|
||||||
@@ -769,8 +767,6 @@ function booking_variety_regn_edit_form_submit($form, &$form_state) {
|
|||||||
$form_state['redirect'] = $redirect_path;
|
$form_state['redirect'] = $redirect_path;
|
||||||
}
|
}
|
||||||
elseif ($form_state['values']['op'] == 'Update Session Registration') {
|
elseif ($form_state['values']['op'] == 'Update Session Registration') {
|
||||||
|
|
||||||
|
|
||||||
// iterate over the new list comparing to the old list
|
// iterate over the new list comparing to the old list
|
||||||
foreach ($booking_variety_ids as $new_tid => $new_sid) {
|
foreach ($booking_variety_ids as $new_tid => $new_sid) {
|
||||||
//check if there was a previous session ID for this person in this timeslot
|
//check if there was a previous session ID for this person in this timeslot
|
||||||
|
Reference in New Issue
Block a user