
Untitled
By: a guest on
May 2nd, 2012 | syntax:
Diff | size: 0.87 KB | hits: 20 | expires: Never
Index: sf_queue_processor.module
===================================================================
--- sf_queue_processor.module (revision 2828)
+++ sf_queue_processor.module (working copy)
@@ -294,8 +294,8 @@
$objects = array();
// get all the objects out of the batch
-
- foreach($batch['records'] as $item) {
+ $records = array();
+ foreach($batch['records'] as $i => $item) {
// Skip if no object is present. This prevents errors when Sync is run
// with nothing pending in the queue.
if (!isset($item->object)) {
@@ -313,8 +313,9 @@
continue;
}
array_push($objects, (object)$object);
+ $records[] = $item;
}
-
+ $batch['records'] = $records;
// apply validation for create/upsert/update actions
if ($batch['action'] != 'delete') {
queue_validate_batch($objects, $batch['salesforce_type']);