Closed (fixed)
Project:
Commerce Registration
Version:
7.x-2.0-beta3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Oct 2012 at 15:38 UTC
Updated:
28 Nov 2012 at 16:50 UTC
Hello again,
I am getting the following error message on a product display page with a cart that has no commerce products marked as active:
Notice: Undefined index: product_id in commerce_registration_form_alter() (line 298 of /Users/choicelildice/websites/tentiko/site/sites/all/modules/contrib/commerce_registration/commerce_registration.module).
A simple check for the key before the switch statement starting on line 298 would do the trick:
if (array_key_exists('product_id', $form)){}
Thanks again
Comments
Comment #1
jpontani commentedFixed in latest dev.
Comment #2.0
(not verified) commentedwrong line number