This commit is contained in:
2016-05-31 18:30:50 +10:00
parent 03a184625c
commit aec30aabd2

View File

@@ -462,15 +462,15 @@ function booking_manual_email_form_submit($form, &$form_state) {
elseif ($form_state['values']['email-type'] == 'missedpayment') { elseif ($form_state['values']['email-type'] == 'missedpayment') {
$message = t('Processing a manual missedpayment email to id @info', array ('@info' => $key)); $message = t('Processing a manual missedpayment email to id @info', array ('@info' => $key));
_booking_missedpayment_email($key); _booking_missedpayment_email($key);
} }
elseif (strpos($form_state['values']['email-type'], 'custom') !== false) {
$message = t('Processing a @custom type email to id @info', array ('@custom' => $form_state['values']['email-type'], '@info' => $key));
_booking_custom_email($key, $form_state['values']['email-type'], 'contact');
}
elseif (strpos($form_state['values']['email-type'], 'customlogistics') !== false) { elseif (strpos($form_state['values']['email-type'], 'customlogistics') !== false) {
$message = t('Processing a @custom type email from logistics to id @info', array ('@custom' => $form_state['values']['email-type'], '@info' => $key)); $message = t('Processing a @custom type email from logistics to id @info', array ('@custom' => $form_state['values']['email-type'], '@info' => $key));
_booking_custom_email($key, $form_state['values']['email-type'], 'logistics'); _booking_custom_email($key, $form_state['values']['email-type'], 'logistics');
} }
elseif (strpos($form_state['values']['email-type'], 'custom') !== false) {
$message = t('Processing a @custom type email to id @info', array ('@custom' => $form_state['values']['email-type'], '@info' => $key));
_booking_custom_email($key, $form_state['values']['email-type'], 'contact');
}
//increase the counter of people we've emailed //increase the counter of people we've emailed
$counter++; $counter++;
//store info about the email //store info about the email