Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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[$i] = $item;
- }
- -
- + $batch['records'] = $records;
- // apply validation for create/upsert/update actions
- if ($batch['action'] != 'delete') {
- queue_validate_batch($objects, $batch['salesforce_type']);
Advertisement
Add Comment
Please, Sign In to add comment