Author: david
Date: Mon Jun 27 14:32:12 2011
New Revision: 9195

Log:
Test if type_id is defined in related QubitTerm row

Modified:
   trunk/lib/task/migrate/QubitMigrate110.class.php

Modified: trunk/lib/task/migrate/QubitMigrate110.class.php
==============================================================================
--- trunk/lib/task/migrate/QubitMigrate110.class.php    Mon Jun 27 14:15:34 
2011        (r9194)
+++ trunk/lib/task/migrate/QubitMigrate110.class.php    Mon Jun 27 14:32:12 
2011        (r9195)
@@ -176,7 +176,15 @@
     {
       if (isset($item['type_id']))
       {
-        switch ($this->data['QubitTerm'][$item['type_id']]['id'])
+        $type_id = $item['type_id'];
+
+        // Test if type_id is defined in related QubitTerm row
+        if (isset($this->data['QubitTerm'][$item['type_id']]))
+        {
+          $type_id = $this->data['QubitTerm'][$item['type_id']]['id'];
+        }
+
+        switch ($type_id)
         {
           case '<?php echo QubitTerm::RELATION_NOTE_DATE_ID."\n" ?>':
             $colname = 'date';

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