Check if extended_info is set for order report items (https://github.com/woocommerce/woocommerce-admin/pull/3315)

This commit is contained in:
Joshua T Flowers 2019-11-29 09:22:18 +08:00 committed by GitHub
parent 3f13793e66
commit 81599c5178
1 changed files with 2 additions and 2 deletions

View File

@ -497,9 +497,9 @@ class Controller extends ReportsController implements ExportableInterface {
'order_number' => $item['order_number'], 'order_number' => $item['order_number'],
'status' => $item['status'], 'status' => $item['status'],
'customer_type' => $item['customer_type'], 'customer_type' => $item['customer_type'],
'products' => $this->_get_products( $item['extended_info']['products'] ), 'products' => isset( $item['extended_info']['products'] ) ? $this->_get_products( $item['extended_info']['products'] ) : null,
'num_items_sold' => $item['num_items_sold'], 'num_items_sold' => $item['num_items_sold'],
'coupons' => $this->_get_coupons( $item['extended_info']['coupons'] ), 'coupons' => isset( $item['extended_info']['coupons'] ) ? $this->_get_coupons( $item['extended_info']['coupons'] ) : null,
'net_total' => $item['net_total'], 'net_total' => $item['net_total'],
); );
} }