Revision: 1260
http://mrbs.svn.sourceforge.net/mrbs/?rev=1260&view=rev
Author: cimorrison
Date: 2009-11-12 18:05:57 +0000 (Thu, 12 Nov 2009)
Log Message:
-----------
Restricted emailing approval authorities when a booking is made to those cases
where the booking actually needs approval.
Modified Paths:
--------------
mrbs/branches/provisional_bookings/web/functions_mail.inc
Modified: mrbs/branches/provisional_bookings/web/functions_mail.inc
===================================================================
--- mrbs/branches/provisional_bookings/web/functions_mail.inc 2009-11-12
14:19:25 UTC (rev 1259)
+++ mrbs/branches/provisional_bookings/web/functions_mail.inc 2009-11-12
18:05:57 UTC (rev 1260)
@@ -242,9 +242,10 @@
$from = $mail_settings['from'];
}
- if ($provisional_enabled)
+ // if we're using provisional bookings and this user needs approval
+ // for this room, then get the email addresses of the approvers
+ if ($provisional_enabled && !auth_can_confirm($user, $room_id))
{
- // get the list of email addresses of approvers for this room
$recipients[] = get_approvers_email($room_id);
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits