Sometimes I received next exception:

EntityMetadataWrapperException: Unknown data property commerce_product. in EntityStructureWrapper->getPropertyInfo() (line 335 of /var/www/store/sites/all/modules/contrib/entity/includes/entity.wrapper.inc).

I could fix it with copiyng next code protection:

      if (!in_array('commerce_product', array_keys($line_item_wrapper->getPropertyInfo()))) {
        continue;
      }
      

Please review my patch

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

id.tarzanych’s picture

Issue summary: View changes
id.tarzanych’s picture

jkuma’s picture

Title: Developed code protection for commerce_return_new_configure_line_items() » Need code protection for commerce_return_new_configure_line_items()
Status: Needs review » Reviewed & tested by the community
FileSize
2.93 KB

Thank you, I have rolled your patch against last dev and added a comment. Sorry some code cleaning is present in the patch.

jkuma’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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