From aec30aabd27606c08bfec1204dc926d820b75aa1 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Tue, 31 May 2016 18:30:50 +1000 Subject: [PATCH] bugfix --- booking.emails_admin.inc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/booking.emails_admin.inc b/booking.emails_admin.inc index b7e580c..68350b5 100644 --- a/booking.emails_admin.inc +++ b/booking.emails_admin.inc @@ -462,15 +462,15 @@ function booking_manual_email_form_submit($form, &$form_state) { elseif ($form_state['values']['email-type'] == 'missedpayment') { $message = t('Processing a manual missedpayment email to id @info', array ('@info' => $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) { $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'); - } + } + 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 $counter++; //store info about the email