* Wrong filter argument

* Fix - duplicate schema properties

* Use $export_item instead of $export_column

Co-authored-by: Sultan Nasir Uddin <manikdrmc@gmail.com>
Co-authored-by: Rebecca Scott <me@becdetat.com>
This commit is contained in:
Bec Scott 2020-10-28 01:31:39 +10:00 committed by GitHub
parent 2315bf1662
commit 133a985b9a
1 changed files with 1 additions and 7 deletions

View File

@ -204,12 +204,6 @@ class Controller extends ReportsController implements ExportableInterface {
'context' => array( 'view', 'edit' ),
'description' => __( 'File URL.', 'woocommerce-admin' ),
),
'product_id' => array(
'type' => 'integer',
'readonly' => true,
'context' => array( 'view', 'edit' ),
'description' => __( 'Product ID.', 'woocommerce-admin' ),
),
'order_id' => array(
'type' => 'integer',
'readonly' => true,
@ -421,7 +415,7 @@ class Controller extends ReportsController implements ExportableInterface {
* @return array Key value pair of Column ID => Row Value.
*/
public function prepare_item_for_export( $item ) {
$export_columns = array(
$export_item = array(
'date' => $item['date'],
'product' => $item['_embedded']['product'][0]['name'],
'file_name' => $item['file_name'],