Skip to content

Commit

Permalink
Fix tab filter.
Browse files Browse the repository at this point in the history
  • Loading branch information
renintw committed May 23, 2024
1 parent 90e5860 commit 6f121a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,6 @@ public static function get_current_tab() {
$tabs = array(
'drafts',
'overdue',

'pending-approval',
'approved',
'pending-payment',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ public function prepare_items() {
$where .= " AND `status` IN ( 'wcb-failed', 'wcb-cancelled' ) ";
} elseif ( 'drafts' == $view ) {
$where .= " AND `status` = 'draft' ";
} elseif ( 'needs-followup' == $view ) {
$where .= " AND `status` = 'wcb-needs-followup' ";
}

if ( ! empty( $_REQUEST['s'] ) ) {
Expand Down

0 comments on commit 6f121a3

Please sign in to comment.