Skip to content

Commit

Permalink
PSA-74 - Logs Filter Was Not Working In App
Browse files Browse the repository at this point in the history
  • Loading branch information
smusmanobjects committed Jul 1, 2024
1 parent cc509a0 commit 852175b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Postman/Mobile/includes/rest-api/v2/rest-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,14 @@ public function get_logs( WP_REST_Request $request ) {

}

if( empty( $query ) && !empty( $this->filter ) ) {
if( empty( $query ) && !empty( $this->filter ) && $this->filter !== 'all' ) {

add_filter( 'post_smtp_get_logs_query_after_table', array( $this, 'filter_query' ) );
$args['status'] = $this->filter;

}
else {

$args['status'] = '';

}

Expand Down

0 comments on commit 852175b

Please sign in to comment.