Closed (fixed)
Project:
Commerce Core
Version:
7.x-1.0-alpha3
Component:
Product
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Dec 2010 at 16:16 UTC
Updated:
8 Dec 2010 at 15:13 UTC
Hi
I'm getting this PHP notice in the product listing view (admin/commerce/products).
I've found that the problem is originated in the Operations field in the view, this call of menu_contextual_links in the commerce_product_handler_field_product_operations handler:
$links = menu_contextual_links('commerce-product', 'admin/commerce/products', array($product_id));
This call looks for the admin/commerce/products/%commerce_product item link and the title callback is the function raising the error:
function commerce_product_ui_product_title($product) {
return t('Product: @sku', array('@sku' => $product->sku));
}
I think that $product is a integer when called from the view and the callback is somehow expecting an object with SKU property.
Comments
Comment #1
rszrama commentedOut of curiosity, does applying #979958: load_functions detection for menu items broken by patch #606966 fix this issue? It was a patch related to the autoloading of entities based on the URL.
Comment #2
arcanys commentedHi,
I have this problem too. Is this already fix?
- John
Comment #3
pcambraThanks rszama, with the last drupal 7 dev, which includes the patch you mentioned, this is not happening anymore.