logic fixes
This commit is contained in:
@@ -299,6 +299,7 @@ function travel_form($node, &$form_state, $inserting = FALSE, $nid = 0)
|
|||||||
$form['requirements']['booking_medical_conditions'] = array(
|
$form['requirements']['booking_medical_conditions'] = array(
|
||||||
'#type' => 'textfield',
|
'#type' => 'textfield',
|
||||||
'#title' => t('Please describe any medical condition we need to know about.'),
|
'#title' => t('Please describe any medical condition we need to know about.'),
|
||||||
|
'#description' => t('This field contains information you entered when you registered.'),
|
||||||
'#maxlength' => 180,
|
'#maxlength' => 180,
|
||||||
'#required' => FALSE,
|
'#required' => FALSE,
|
||||||
'#default_value' => !empty($data->booking_medical_conditions) ? $data->booking_medical_conditions : $booking_medical_conditions
|
'#default_value' => !empty($data->booking_medical_conditions) ? $data->booking_medical_conditions : $booking_medical_conditions
|
||||||
@@ -306,7 +307,7 @@ function travel_form($node, &$form_state, $inserting = FALSE, $nid = 0)
|
|||||||
//only show the room mate field if we're allowed to
|
//only show the room mate field if we're allowed to
|
||||||
if (variable_get('booking_enable_roommate', 0) == 1 || $inserting == FALSE) {
|
if (variable_get('booking_enable_roommate', 0) == 1 || $inserting == FALSE) {
|
||||||
//married people won't need to select a room mate
|
//married people won't need to select a room mate
|
||||||
if ((variable_get('booking_enable_combined_pricing', 0) == 1) && $person->booking_partner_id == 0) {
|
if ($person->booking_partner_id == 0) {
|
||||||
$form['requirements']['booking_room_mate1'] = array(
|
$form['requirements']['booking_room_mate1'] = array(
|
||||||
'#type' => 'textfield',
|
'#type' => 'textfield',
|
||||||
'#title' => t('I would like to share a room with'),
|
'#title' => t('I would like to share a room with'),
|
||||||
|
Reference in New Issue
Block a user