Notice: Trying to get property of non-object in commerce_file_commerce_license_types_list_alter() (line 517 of /drupal_path/sites/all/modules/commerce_file/commerce_file.module)
this is the error i got when i try to Generate products with Commerce Devel Generate.

CommentFileSizeAuthor
#1 error_notice-2065131-1.patch575 bytesvasike
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

vasike’s picture

Status: Active » Needs review
FileSize
575 bytes

it seems the hook hook_commerce_license_types_list_alter() assumes that product entity it's defined.
here it's patch that removes the error notice.

bojanz’s picture

Status: Needs review » Fixed

Committed, thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.