Don't you think the following code is unnecessary at line 260 of commerce_conditions.module

  $product_wrapper = entity_metadata_wrapper('commerce_product', $line_item_wrapper->commerce_product->product_id->value());
$line_item_product_type = $product_wrapper->type->value();

because you simply can do that

$line_item_product_type  = $line_item_wrapper->commerce_product->type->value();

Tell me i am wrong.

Comments

PrinceManfred’s picture

You are totally right. I'll put the change in with the next update. Thanks : )

kenorb’s picture

Priority: Major » Normal
Issue summary: View changes