minor updates

This commit is contained in:
Nathan Coad
2016-06-03 13:05:05 +10:00
parent a2a81303be
commit 17076469de
2 changed files with 12 additions and 6 deletions

View File

@@ -284,8 +284,9 @@ function booking_manual_email_form($form, &$form_state)
$email_options_array['remindertravelrequired'] = 'Reminder Travel Form Required Email';
$email_options_array['travelcomplete'] = 'Travel Form Complete Email';
$preselection_options['---'] = "---";
$preselection_options['bookedin'] = 'Status of Booked-in';
$preselection_options['unpaid'] = 'Booked-in people with outstanding balance';
$preselection_options['bookedin'] = 'People who are booked-in';
$preselection_options['unpaid'] = 'People booked-in with outstanding balance';
$preselection_options['notravelform'] = "People who haven't submitted travel form";
$preselection_options['test'] = 'Testing';
$header = array(
@@ -310,7 +311,8 @@ function booking_manual_email_form($form, &$form_state)
//add in the custom email types from logistics
for ($i = 1; $i <= 5; $i++)
{
$email_options_array['customlogistics' . $i] = variable_get('booking_email_subject_customlogistics' . $i, $event->booking_eventname . ' logistics custom ' . $i);
$email_options_array['customlogistics' . $i] = variable_get('booking_email_subject_customlogistics' . $i,
$event->booking_eventname . ' logistics custom ' . $i) . " **Logistics**";
}
/*
//add some indication of which people have been pre-selected, if any
@@ -500,10 +502,15 @@ function _booking_email_get_default_selection_callback($form, $form_state) {
}
break;
case 'unpaid':
if ($person->booking_payment_complete == 'Y' || $person->booking_status != 1) {
if ($person->booking_payment_complete == 'N' && $person->booking_status == 1) {
$defaults[] = $person->nid;
}
break;
break;
case 'notravelform':
if ($person->tid == 0) {
$defaults[] = $person->nid;
}
break;
case 'test':
if ($person->booking_lastname == 'Coad') {
$defaults[] = $person->nid;