Author: david
Date: Wed Jan 25 12:19:38 2012
New Revision: 10750

Log:
Fix typos that prevented --target-version option from working

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

Modified: trunk/lib/task/migrate/MigrateTask.class.php
==============================================================================
--- trunk/lib/task/migrate/MigrateTask.class.php        Wed Jan 25 00:02:54 
2012        (r10749)
+++ trunk/lib/task/migrate/MigrateTask.class.php        Wed Jan 25 12:19:38 
2012        (r10750)
@@ -80,7 +80,7 @@
     // Get target application version for data migration
     if (isset($options['target-version']))
     {
-      if (!preg_match('/^\d+$/', $options['target-version']) || 
!in_array($options['target-version'], $this->validReleases))
+      if (!preg_match('/^\d+$/', $options['target-version']) && 
!in_array($options['target-version'], $this->validReleases))
       {
         throw new Exception('Invalid target version 
"'.$options['target-version'].'".');
       }
@@ -178,7 +178,7 @@
       $this->version = 0;
     }
 
-    while (null !== $this->version && (null === $this->targetVersion || 
$this->targetVersion < $this->version))
+    while (null !== $this->version && (null === $this->targetVersion || 
$this->targetVersion > $this->version))
     {
       $migrator = QubitMigrateFactory::getMigrator($this->data, 
$this->version);
       $this->data = $migrator->execute();

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