Closed (fixed)
Project:
Commerce Core
Version:
7.x-1.x-dev
Component:
Commerce
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Nov 2011 at 18:06 UTC
Updated:
12 Dec 2011 at 19:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
jsacksick commentedFor now, the entities array is updated in the view method in the commerce_controller.inc file.
Comment #2
jsacksick commentedComment #3
rszrama commentedHmm, the patch you uploaded was empty. : )
Comment #4
damien tournoud commentedThis is actually a bug report. This has been fixed (at least partially) in the Entity API controller, but not in ours.
Comment #5
jsacksick commentedSorry ... ! I don't know what happened ! That's a quick dirty patch ...
Comment #6
rszrama commentedAhh, I see. Without the patch I didn't know where the problem actually was. : )
Comment #7
rszrama commentedQueuing the patch for testing.
Comment #8
rszrama commentedAlrighty, we have confirmation that this fixes things, and I was able to jimmy a test together locally to confirm it. I rewrote the patch to build the new entities array in an entirely separate variable. Imagine if the $entities array had entities keyed 1, 2, 3 and the entity with the key of 1 was rekeyed to 3. I also don't particularly care for falling back to the existing delta value in the event that we can't determine an entity's actual ID Key, but I suppose it's safe since this is likely to never happen and if it does none of the entities in the array should have that key.
Commit: http://drupalcode.org/project/commerce.git/commitdiff/9340c34