Fixed intl verification on regn form
This commit is contained in:
@@ -1161,7 +1161,7 @@ function _booking_validate($node, &$form_state) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//verify international address has updated the state field
|
//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.'));
|
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.'));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user