Author: david
Date: Thu Oct 14 16:46:35 2010
New Revision: 8146
Log:
Refactor.
Modified:
trunk/lib/task/migrate/QubitMigrate109.class.php
Modified: trunk/lib/task/migrate/QubitMigrate109.class.php
==============================================================================
--- trunk/lib/task/migrate/QubitMigrate109.class.php Thu Oct 14 16:44:21
2010 (r8145)
+++ trunk/lib/task/migrate/QubitMigrate109.class.php Thu Oct 14 16:46:35
2010 (r8146)
@@ -477,15 +477,20 @@
}
}
- // Duplicate ancestor's publication status. Assign status to all
- // descendents in $keys stack
- while ($statusKey && 0 < count($keys))
+ // Duplicate ancestor's publication status
+ if ($statusKey)
{
- $status['object_id'] = array_shift($keys);
+ $status = array();
$status['type_id'] =
$this->data['QubitStatus'][$statusKey]['type_id'];
$status['status_id'] =
$this->data['QubitStatus'][$statusKey]['status_id'];
- $this->data['QubitStatus']["QubitStatus_{$status['object_id']}"] =
$status;
+ // Assign status to all descendents in $keys stack
+ while (0 < count($keys))
+ {
+ $status['object_id'] = array_shift($keys);
+
+ $this->data['QubitStatus']["QubitStatus_{$status['object_id']}"] =
$status;
+ }
}
}
}
--
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.