bugfix
This commit is contained in:
@@ -1316,8 +1316,13 @@ function _booking_details_email_summary($node) {
|
||||
$rows[] = t('Name: !first !last', array('!first' => $node->booking_firstname, '!last' => $node->booking_lastname));
|
||||
$rows[] = t('Gender: !gender', array('!gender' => $node->booking_gender == 'M' ? 'Male' : 'Female'));
|
||||
$rows[] = t('Date of birth: !dob', array('!dob' => _booking_convert_ts($node->booking_dob)->format('d/m/Y')));
|
||||
|
||||
if (variable_get('booking_enable_earlyaccess_codes', 0) == 1) {
|
||||
$rows[] = array(t('Early Access Code:'), t('!code', array('!code' => $node->booking_earlyaccess_code)));
|
||||
//look up the actual code since the booking_person node available at this time only has the primary key for that table
|
||||
$earlyaccess_query = db_query("SELECT booking_earlyaccess_code FROM {booking_earlyaccess_codes} where cid = :code",
|
||||
array(':code' => $values['booking_earlyaccess_code_id']))
|
||||
->fetchObject();
|
||||
$rows[] = array(t('Early Access Code:'), t('!code', array('!code' => $earlyaccess_query->booking_earlyaccess_code)));
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user