fix field validation

This commit is contained in:
Nathan Coad
2019-09-15 09:29:03 +10:00
parent bc5a59604e
commit 58d786bd32

View File

@@ -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.'));
}