Revision: 1329
          http://mrbs.svn.sourceforge.net/mrbs/?rev=1329&view=rev
Author:   cimorrison
Date:     2010-04-15 23:21:32 +0000 (Thu, 15 Apr 2010)

Log Message:
-----------
Fixed bug which was preventing individual members of a series being edited (bug 
introduced in Rev 1297).

Revision Links:
--------------
    http://mrbs.svn.sourceforge.net/mrbs/?rev=1297&view=rev

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

Modified: mrbs/trunk/web/edit_entry.php
===================================================================
--- mrbs/trunk/web/edit_entry.php       2010-04-15 15:12:44 UTC (rev 1328)
+++ mrbs/trunk/web/edit_entry.php       2010-04-15 23:21:32 UTC (rev 1329)
@@ -118,6 +118,7 @@
   $entry_type  = $row['entry_type'];
   $rep_id      = $row['repeat_id'];
   $private     = $row['private'];
+
   if ($private_mandatory) 
   {
     $private = $private_default;
@@ -159,9 +160,12 @@
 
     if (isset($rep_type) && ($rep_type != REP_NONE))
     {
-      $start_day   = (int)strftime('%d', $row['start_time']);
-      $start_month = (int)strftime('%m', $row['start_time']);
-      $start_year  = (int)strftime('%Y', $row['start_time']);
+      if ($edit_type == "series")
+      {
+        $start_day   = (int)strftime('%d', $row['start_time']);
+        $start_month = (int)strftime('%m', $row['start_time']);
+        $start_year  = (int)strftime('%Y', $row['start_time']);
+      }
       
       $rep_end_day   = (int)strftime('%d', $row['end_date']);
       $rep_end_month = (int)strftime('%m', $row['end_date']);


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

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to