Closed (fixed)
Project:
Commerce Core
Version:
7.x-1.x-dev
Component:
Line item
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
8 May 2015 at 13:02 UTC
Updated:
5 Oct 2015 at 21:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
aleksijohansson commentedCheck that the referenced line items exists when an order is being deleted.
Comment #2
aleksijohansson commentedChanged the method used in the patch for checking to getBundle since dataAvailable is a protected method.
Comment #3
rszrama commentedTagging for http://contribkanban.com/#/board/commerce/7.x-1.x.
Comment #4
mglaman$line_item_wrapperdoesn't exist as a variable.Comment #5
mglamanThe proper way to handle this is by implementing Try/Catch. We're encountering an unexpected reference due to the line item being deleted outside of the referencing entity's knowledge. So in the event of EntityMetadataWrapperException we should catch it and just carry on instead of adding other logic to check data values (which could still cause exceptions.)
Comment #6
aleksijohansson commented@mglaman You're completely right, thanks for the patch! Testing this out now.
Comment #7
aleksijohansson commentedSeems to be working fine!
Comment #8
aleksijohansson commentedComment #10
rszrama commentedThanks for the patch(es) and review. Committed!