Author: sevein
Date: Wed Aug  3 12:00:02 2011
New Revision: 9432

Log:
Process event component even when sourceId param exists, but stop the execution 
when deleting deleteEvents array of items because when copying, those objects 
not really exist in the database. Fixes issue 2033

Modified:
   trunk/apps/qubit/modules/event/actions/editComponent.class.php

Modified: trunk/apps/qubit/modules/event/actions/editComponent.class.php
==============================================================================
--- trunk/apps/qubit/modules/event/actions/editComponent.class.php      Tue Aug 
 2 15:58:46 2011        (r9431)
+++ trunk/apps/qubit/modules/event/actions/editComponent.class.php      Wed Aug 
 3 12:00:02 2011        (r9432)
@@ -101,12 +101,6 @@
 
   public function processForm()
   {
-    // Ignore this method if duplicating
-    if (isset($this->request->sourceId))
-    {
-      return;
-    }
-
     $params = array($this->request->editEvent);
     if (isset($this->request->editEvents))
     {
@@ -153,6 +147,12 @@
       }
     }
 
+    // Stop here if duplicating
+    if (isset($this->request->sourceId))
+    {
+      return;
+    }
+
     if (isset($this->request->deleteEvents))
     {
       foreach ($this->request->deleteEvents as $item)

-- 
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/qubit-commits?hl=en.

Reply via email to