Author: david
Date: Wed Aug 12 19:17:44 2009
New Revision: 3022

Log:
Sort term list by lft value to ensure parent terms are inserted before children.

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

Modified: trunk/lib/task/migrate/QubitMigrate107to108.class.php
==============================================================================
--- trunk/lib/task/migrate/QubitMigrate107to108.class.php       Wed Aug 12 
18:52:16 2009        (r3021)
+++ trunk/lib/task/migrate/QubitMigrate107to108.class.php       Wed Aug 12 
19:17:44 2009        (r3022)
@@ -407,6 +407,9 @@
       }
     }
 
+    // Sort remainder of array by lft values
+    QubitMigrate::sortByLft($qubitTermArray);
+
     // Append remaining (variable id) terms to the end of the new array
     foreach ($qubitTermArray as $key => $term)
     {

--~--~---------~--~----~------------~-------~--~----~
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.ca/group/qubit-commits?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to