Skip to content

Commit

Permalink
fix(paypal-mass-csv): download paypal mass payment file is not genera…
Browse files Browse the repository at this point in the history
…ting any content is fixed #260 (#261)
  • Loading branch information
saimonh3 authored and sabbir1991 committed Jun 1, 2018
1 parent e209cb5 commit 4f91fe6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion assets/js/vue-admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ let Modal = dokan_get_lib('Modal');
}

if ('paypal' === action) {
let ids = items.join("','");
let ids = items.join(",");

$.post(ajaxurl, {
'dokan_withdraw_bulk': 'paypal',
Expand Down
2 changes: 1 addition & 1 deletion classes/admin-withdraw.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ function generate_csv( $withdraw_ids ) {

$result = $wpdb->get_results(
"SELECT * FROM {$wpdb->dokan_withdraw}
WHERE id in ('$withdraw_ids') and status = 1"
WHERE id in ($withdraw_ids) and status = 0"
);

if ( ! $result ) {
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/class-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ function dokan_admin_toolbar() {
* @return void
*/
public function do_updates() {
Dokan_Admin_Withdraw::init()->bulk_action_handler();
// Dokan_Admin_Withdraw::init()->bulk_action_handler();

if ( isset( $_GET['dokan_do_update'] ) && $_GET['dokan_do_update'] == 'true' ) {
$installer = new Dokan_Installer();
Expand Down
2 changes: 1 addition & 1 deletion src/admin/pages/Withdraw.vue
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ export default {
}
if ( 'paypal' === action ) {
let ids = items.join("','");
let ids = items.join(",");
$.post(ajaxurl, {
'dokan_withdraw_bulk': 'paypal',
Expand Down

0 comments on commit 4f91fe6

Please sign in to comment.