Revision: 1710
http://mrbs.svn.sourceforge.net/mrbs/?rev=1710&view=rev
Author: cimorrison
Date: 2010-12-17 11:30:09 +0000 (Fri, 17 Dec 2010)
Log Message:
-----------
Fixed bug which caused repeat, all-day bookings not to book the last day of a
series.
Modified Paths:
--------------
mrbs/trunk/web/edit_entry_handler.php
Modified: mrbs/trunk/web/edit_entry_handler.php
===================================================================
--- mrbs/trunk/web/edit_entry_handler.php 2010-12-17 00:09:26 UTC (rev
1709)
+++ mrbs/trunk/web/edit_entry_handler.php 2010-12-17 11:30:09 UTC (rev
1710)
@@ -269,9 +269,12 @@
if (isset($all_day) && ($all_day == "yes"))
{
+ // We need to set $start_seconds because it won't have been passed through
by the
+ // form and it is needed later on.
if ($enable_periods)
{
$max_periods = count($periods);
+ $start_seconds = 12 * 60 * 60;
$starttime = mktime(12, 0, 0, $month, $day, $year);
$endtime = mktime(12, $max_periods, 0, $end_month, $end_day, $end_year);
// We need to set the duration and units because they are needed for email
notifications
@@ -281,6 +284,7 @@
}
else
{
+ $start_seconds = (($morningstarts * 60) + $morningstarts_minutes) * 60;
$starttime = mktime($morningstarts, $morningstarts_minutes, 0,
$month, $day, $year,
is_dst($month, $day, $year, $morningstarts));
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits