Fix downloads report (https://github.com/woocommerce/woocommerce-admin/pull/5441)
* 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:
parent
2315bf1662
commit
133a985b9a
|
@ -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'],
|
||||
|
|
Loading…
Reference in New Issue