Closed (fixed)
Project:
Commerce Webform
Version:
7.x-1.0-beta4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Aug 2012 at 03:21 UTC
Updated:
24 Nov 2012 at 21:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
jerenus commentedI just added a filter to solve the problem of non-object error.
Comment #2
jerenus commentedComment #3
micnap commentedThe patch in #1 didn't do it for me. My issue was in commerce_webform.module. Here's a patch for that. Thanks jerenus for putting me on the right track.
Mickey
Comment #4
micnap commentedJust came across the place where the patch from #1 is needed - when viewing the associated webform submission from an order. Thanks for that!
So, it looks like both patches in this thread are needed.
Mickey
Comment #5
johnennew commentedI am not sure I understand the situation where the product_id may not be set. I have tested and seen that if you fail to choose any products for a productfield, the product_id is set as empty, though still there. This didn't appear to generate any errors though.
I have added the check for a non-empty product id, I think that !empty is a better test for this?
Kind regards,
John
Comment #6
jerenus commentedThanks!
Jerenus
Comment #7
johnennew commentedCommitted this to dev. Thanks all.