Revision: 1521
          http://mrbs.svn.sourceforge.net/mrbs/?rev=1521&view=rev
Author:   cimorrison
Date:     2010-10-21 11:22:51 +0000 (Thu, 21 Oct 2010)

Log Message:
-----------
Corrected the end date and time when editing a series

Modified Paths:
--------------
    mrbs/branches/from_to_bookings/web/edit_entry.php

Modified: mrbs/branches/from_to_bookings/web/edit_entry.php
===================================================================
--- mrbs/branches/from_to_bookings/web/edit_entry.php   2010-10-21 11:10:34 UTC 
(rev 1520)
+++ mrbs/branches/from_to_bookings/web/edit_entry.php   2010-10-21 11:22:51 UTC 
(rev 1521)
@@ -224,7 +224,7 @@
 
   if($entry_type >= 1)
   {
-    $sql = "SELECT rep_type, start_time, end_date, rep_opt, rep_num_weeks
+    $sql = "SELECT rep_type, start_time, end_time, end_date, rep_opt, 
rep_num_weeks
               FROM $tbl_repeat 
              WHERE id=$rep_id
              LIMIT 1";
@@ -248,11 +248,12 @@
     // If it's a repeating entry get the repeat details
     if (isset($rep_type) && ($rep_type != REP_NONE))
     {
-      // If we're editing the series we want the start_time to be the start
-      // of the series, not the start of this entry
+      // If we're editing the series we want the start_time and end_time to be 
the
+      // start and of the first entry of the series, not the start of this 
entry
       if ($edit_type == "series")
       {
         $start_time = $row['start_time'];
+        $end_time = $row['end_time'];
       }
       
       $rep_end_day   = (int)strftime('%d', $row['end_date']);


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

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to