Fixed intl verification on regn form

This commit is contained in:
2015-09-12 09:49:42 +10:00
parent 97bd469d98
commit af646f443e

View File

@@ -1161,7 +1161,7 @@ function _booking_validate($node, &$form_state) {
}
//verify international address has updated the state field
if ((strcasecmp($form_state['booking_country'], 'Australia') !== 0) && (strcasecmp($form_state['booking_state'], 'Other') !== 0))
if ((strcasecmp($form_state['booking_country'], 'Australia') !== 0) && (strcasecmp($form_state['booking_state'], 'Other') !== 0) && (strcasecmp($form_state['booking_state'], 'NZ') !== 0))
{
form_set_error('booking_state', t('You must enter your State in the address section of the Contact details. Please choose a state of Other and specify N/A if your country does not have states.'));
}