This commit is contained in:
Nathan Coad
2018-05-03 10:31:07 +10:00
parent a90960619d
commit 1d913c156e

View File

@@ -150,11 +150,8 @@ function booking_variety_regn_form_validate($form, &$form_state) {
->fields('v')
->execute();
watchdog('booking_debug', 'variety session registration rowcount: <pre>@info</pre>', array('@info' => $prev_regn_query->rowCount()));
if ($prev_regn_query->rowCount() > 0) {
form_set_error('booking_nid', t('You have already registered for variety sessions. Existing registration cannot be changed.'));
watchdog('booking_debug', 'Previous variety session registration: <pre>@info</pre>', array('@info' => print_r( $prev_regn_check, true)));
}
// --- Check there is still space available in the selected variety sessions ---