Author: sevein
Date: Sun Nov  7 12:24:35 2010
New Revision: 8797

Log:
Upgrade the way that place are duplicated in events when a record is being 
copyed to avoid drop the place form the source description. Fixes issue 1891.

Modified:
   trunk/apps/qubit/modules/informationobject/actions/editAction.class.php

Modified: 
trunk/apps/qubit/modules/informationobject/actions/editAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/actions/editAction.class.php     
Sun Nov  7 11:15:18 2010        (r8796)
+++ trunk/apps/qubit/modules/informationobject/actions/editAction.class.php     
Sun Nov  7 12:24:35 2010        (r8797)
@@ -443,7 +443,10 @@
             // Place
             if (null !== $place = 
QubitObjectTermRelation::getOneByObjectId($sourceEvent->id))
             {
-              $event->objectTermRelationsRelatedByobjectId[] = $place;
+              $termRelation = new QubitObjectTermRelation;
+              $termRelation->term = $place->term;
+
+              $event->objectTermRelationsRelatedByobjectId[] = $termRelation;
             }
 
             $this->resource->events[] = $event;

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