update logic for travel form showing bf/gf field

This commit is contained in:
2016-05-24 22:14:46 +10:00
parent 1674c5242f
commit 2e09ca1814

View File

@@ -280,7 +280,7 @@ function travel_form($node, &$form_state, $inserting = FALSE, $nid = 0)
} }
} }
//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) if (((variable_get('booking_enable_combined_pricing', 0) == 1) && $person->booking_partner_id == 0) || (variable_get('booking_enable_combined_pricing', 0) == 0))
{ {
$form['requirements']['booking_bf_gf_nid'] = array( $form['requirements']['booking_bf_gf_nid'] = array(
'#type' => 'textfield', '#type' => 'textfield',