Notice: Undefined index: und in commerce_product_bundle_form_alter() (line 146 of C:\Projects\masonjar7\drupal\sites\all\modules\commerce_product_bundle\commerce_product_bundle.module).
Warning: Invalid argument supplied for foreach() in commerce_product_bundle_form_alter() (line 146 of C:\Projects\masonjar7\drupal\sites\all\modules\commerce_product_bundle\commerce_product_bundle.module).
I attempted to enable locale and content translation, and adding an additional language, but this had no effect. In any case, the loop is apparently providing a value for $field that is an empty array for these bundle fields, instead of an array with a lang_code for keys.
Drupal Commerce I am using is version 7.x-1.2.
When products are selected for the product reference fields in the bundle product, the errors are gone. This causes the selection for adding to cart to be limited only to the default value chosen in the product definition.
Comments
Comment #0.0
bob.hinrichs commentedtrying to add more useful info to this report
Comment #0.1
bob.hinrichs commentedadd info on another scenario
Comment #1
olafkarsten commentedNot sure whats going on. The code in this area isn't touched for a long time and just works, until now :/. When did this error pop up? We need some more info's, i guess. We ever need the steps to reproduce an error. Otherwise it's difficult to find a solution.
Comment #2
olafkarsten commentedComment #3
olafkarsten commentedI tested a fresh commerce kickstart installation with locale + content translation enabled and cannot reproduce the error. The product bundle works. I can add translated product display nodes - all works like expected.
Update: I can reproduce the error. It happens if you change the referenced products in a translated product display node.
Comment #4
olafkarsten commentedFinally this has nothing to do with languages and translations. The error is caused by empty product reference field in the "bundle product". Added a check against the reference fields. Should be fixed in latest dev.
Comment #5
olafkarsten commentedshould be fixed, sorry. It's better we see freshly fixed issues for a while.
Comment #6.0
(not verified) commentedadjust last part