logic fix

This commit is contained in:
2016-06-04 12:51:28 +10:00
parent c4b23351ab
commit 42cec9d87f

View File

@@ -329,7 +329,7 @@ function travel_form($node, &$form_state, $inserting = FALSE, $node = NULL, $tok
} }
} }
//only show this field if this person isn't married //only show this field if this person isn't married
if (((variable_get('booking_enable_combined_pricing', 0) == 1) && $person->booking_partner_id == 0) || (variable_get('booking_enable_combined_pricing', 0) == 0)) { if ($person->booking_partner_id == 0) {
$form['requirements']['booking_bf_gf_nid'] = array( $form['requirements']['booking_bf_gf_nid'] = array(
'#type' => 'textfield', '#type' => 'textfield',
'#title' => t('Registration ID of Boyfriend/Girlfriend to be placed in the same discussion groups as you.'), '#title' => t('Registration ID of Boyfriend/Girlfriend to be placed in the same discussion groups as you.'),