Author: sevein
Date: Sun Nov 7 10:54:04 2010
New Revision: 8795
Log:
Fix deletion of events in RAD/DC/MODS (events were not being removed in the
target but in the source).
Modified:
trunk/apps/qubit/modules/event/actions/editComponent.class.php
trunk/apps/qubit/modules/informationobject/actions/editAction.class.php
Modified: trunk/apps/qubit/modules/event/actions/editComponent.class.php
==============================================================================
--- trunk/apps/qubit/modules/event/actions/editComponent.class.php Sun Nov
7 10:10:35 2010 (r8794)
+++ trunk/apps/qubit/modules/event/actions/editComponent.class.php Sun Nov
7 10:54:04 2010 (r8795)
@@ -145,7 +145,7 @@
}
}
- if (!isset($this->request->source) && isset($this->request->deleteEvents))
+ if (!isset($this->request->sourceId) &&
isset($this->request->deleteEvents))
{
foreach ($this->request->deleteEvents as $item)
{
Modified:
trunk/apps/qubit/modules/informationobject/actions/editAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/actions/editAction.class.php
Sun Nov 7 10:10:35 2010 (r8794)
+++ trunk/apps/qubit/modules/informationobject/actions/editAction.class.php
Sun Nov 7 10:54:04 2010 (r8795)
@@ -410,7 +410,7 @@
{
foreach ($sourceInformationObject->events as $sourceEvent)
{
- if (!isset($this->request->deleteEvents[$sourceEvent->id]))
+ if (false != array_search($this->context->routing->generate(null,
array($sourceEvent, 'module' => 'event')), (array)$this->request->deleteEvents))
{
$event = new QubitEvent;
$event->actorId = $sourceEvent->actorId;
--
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.