Author: mcantelon
Date: Fri Dec 30 21:28:45 2011
New Revision: 10497

Log:
Fixed bug with setting actor history.

Modified:
   trunk/lib/task/csvImportTask.class.php

Modified: trunk/lib/task/csvImportTask.class.php
==============================================================================
--- trunk/lib/task/csvImportTask.class.php      Fri Dec 30 21:18:00 2011        
(r10496)
+++ trunk/lib/task/csvImportTask.class.php      Fri Dec 30 21:28:45 2011        
(r10497)
@@ -171,10 +171,6 @@
         if (isset($self->rowStatusVars['creators'])
           && sizeof($self->rowStatusVars['creators']))
         {
-if (sizeof($self->rowStatusVars['creators']) > 1) {
-  //print_r($self->rowStatusVars['creators']); exit();
-}
-
           foreach($self->rowStatusVars['creators'] as $creator)
           {
             // add create event if specified
@@ -469,7 +465,7 @@
 
     if (isset($options['actorName']))
     {
-      $history = isset($options['actorHistory']) || false;
+      $history = isset($options['actorHistory']) ? $options['actorHistory'] : 
false;
       $actor = $this->createOrFetchActor($options['actorName'], $history);
       $event->actorId = $actor->id;
     }
@@ -510,7 +506,6 @@
     $actor->authorizedFormOfName = $name;
     if ($history)
     {
-print 'SET';
       $actor->history = $history;
     }
     $actor->save();

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