Closed (outdated)
Project:
Commerce Core
Version:
7.x-1.x-dev
Component:
Product reference
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
4 Mar 2015 at 17:55 UTC
Updated:
23 Nov 2019 at 20:01 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
tatyana commentedComment #2
rszrama commentedTagging for http://contribkanban.com/#/board/commerce/7.x-1.x.
Haven't tested the patch.
Comment #4
mglamanRe-roll in proper format.
Makes sense
783-785
$item gets overwritten in at the beginning of the case
Comment #5
rszrama commentedI don't mind making this change, as it appears harmless, but I actually can't reproduce the problem on any sort of View or content type.
I edited the Shopping Cart block to render the product reference field and created a line item View from scratch. I created a content type with a product reference on it and viewed its output with the field rendering the product and made a View of said node types.
All of this leads me to believe the $items loop is fine and that the entity key should in fact be an object, but for some reason in your site it isn't. It would be useful to know what the $item array actually looks like for you. My hunch is the fix is just covering up some other module's interference in the $items array.
Comment #6
bojanz commented