From 58d786bd328120359ee1d62544127fc74181aefa Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Sun, 15 Sep 2019 09:29:03 +1000 Subject: [PATCH] fix field validation --- booking.regn_form.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/booking.regn_form.inc b/booking.regn_form.inc index 7dca1b4..0f1b34f 100644 --- a/booking.regn_form.inc +++ b/booking.regn_form.inc @@ -1241,7 +1241,7 @@ function booking_form_validate($form, &$form_state) { form_set_error('booking_agreement', t('You must read and agree with the aims and expectations prior to submitting this form.')); } - if (variable_get('booking_enable_previous_studyweeks', 0) == 1 && $data['booking_prev_sw_count'] == '') { + if (variable_get('booking_require_previous_sw', 0) == 1 && $data['booking_prev_sw_count'] == '') { form_set_error('booking_prev_sw_count', t('You must select the number of study weeks that you\'ve previously attended.')); }