Revision: 1717
          http://mrbs.svn.sourceforge.net/mrbs/?rev=1717&view=rev
Author:   cimorrison
Date:     2010-12-20 15:50:44 +0000 (Mon, 20 Dec 2010)

Log Message:
-----------
Fixed bug whereby a copy of an entry or a series was given the same ical_uid as 
the original

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

Modified: mrbs/branches/ics_attachments/web/edit_entry.php
===================================================================
--- mrbs/branches/ics_attachments/web/edit_entry.php    2010-12-20 10:45:29 UTC 
(rev 1716)
+++ mrbs/branches/ics_attachments/web/edit_entry.php    2010-12-20 15:50:44 UTC 
(rev 1717)
@@ -218,7 +218,13 @@
         // edit_entry_handler and the original room isn't among them, then we 
will 
         // just have to make an arbitrary choice as to which is the room 
containing
         // the original booking.)
-        $original_room_id = $row['room_id'];
+        // NOTE:  We do not set the original_room_id if we are copying an 
entry,
+        // because when we are copying we are effectively making a new entry 
and
+        // so we want edit_entry_handler to assign a new UID, etc.
+        if (!$copy)
+        {
+          $original_room_id = $row['room_id'];
+        }
       case 'ical_uid':
       case 'ical_sequence':
       case 'ical_recur_id':


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

Reply via email to