Changeset:
c71d1df8d101
https://sourceforge.net/p/mrbs/hg-code/ci/c71d1df8d1015b85603222836d3c1b3b43390fbe
Author:
Campbell Morrison <[email protected]>
Date:
Thu Jul 07 16:12:06 2016 +0100
Log message:
Removed type from email notifications if there are fewer than two booking types.
diffstat:
web/functions_mail.inc | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
diffs (30 lines):
diff -r 2460a8438b54 -r c71d1df8d101 web/functions_mail.inc
--- a/web/functions_mail.inc Thu Jul 07 16:01:54 2016 +0100
+++ b/web/functions_mail.inc Thu Jul 07 16:12:06 2016 +0100
@@ -385,7 +385,7 @@
global $enable_periods, $approval_enabled, $confirmation_enabled;
global $mail_settings, $standard_fields, $url_base;
global $tbl_entry;
- global $select_options;
+ global $select_options, $booking_types;
// If we haven't got a previous entry just give it one. It won't get used,
// but will prevent a series if undefined index notices.
@@ -576,10 +576,13 @@
$compare, $as_html);
// Type of booking
- $body .= create_body_table_row (get_mail_vocab("type"),
- get_type_vocab($data['type']),
- get_type_vocab($mail_previous['type']),
- $compare, $as_html);
+ if (count($booking_types) > 1)
+ {
+ $body .= create_body_table_row (get_mail_vocab("type"),
+ get_type_vocab($data['type']),
+ get_type_vocab($mail_previous['type']),
+ $compare, $as_html);
+ }
// Created by
$body .= create_body_table_row (get_mail_vocab("createdby"),
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits