Revision: 2316
          http://mrbs.svn.sourceforge.net/mrbs/?rev=2316&view=rev
Author:   cimorrison
Date:     2012-07-05 15:40:32 +0000 (Thu, 05 Jul 2012)
Log Message:
-----------
Fixed bug causing resizable bookings not to work properly when using periods

Modified Paths:
--------------
    mrbs/trunk/web/edit_entry_handler.php

Modified: mrbs/trunk/web/edit_entry_handler.php
===================================================================
--- mrbs/trunk/web/edit_entry_handler.php       2012-07-05 09:15:40 UTC (rev 
2315)
+++ mrbs/trunk/web/edit_entry_handler.php       2012-07-05 15:40:32 UTC (rev 
2316)
@@ -170,6 +170,11 @@
           $old_end = $old_booking['end_time'];
           $end_seconds = $old_end - $end_daystart;
           $end_seconds -= cross_dst($end_daystart, $old_end);
+          // When using periods end_seconds is actually the start of the last 
period
+          if ($enable_periods)
+          {
+            $end_seconds -= 60;
+          }
           break;
         default:
           if (array_key_exists($var, $old_booking))

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to