Author: david
Date: Fri Oct 22 15:39:20 2010
New Revision: 8387

Log:
Parse url used in revision 8359.

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      Fri Oct 
22 13:07:53 2010        (r8386)
+++ trunk/apps/qubit/modules/event/actions/editComponent.class.php      Fri Oct 
22 15:39:20 2010        (r8387)
@@ -145,7 +145,11 @@
     {
       foreach ($this->request->deleteEvents as $item)
       {
-        QubitEvent::getById($item)->delete();
+        $params = $this->context->routing->parse(Qubit::pathInfo($item));
+        if (isset($params['_sf_route']->resource))
+        {
+          $params['_sf_route']->resource->delete();
+        }
       }
     }
   }

-- 
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