Skip to content

Commit

Permalink
Fix "Lessons in this Course" and "Students taking this Course" exports
Browse files Browse the repository at this point in the history
  • Loading branch information
donnapep committed Aug 20, 2024
1 parent 15f3e9c commit 2b1233b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions includes/class-sensei-analysis-course-list-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,6 @@ public function generate_report( $report ) {
$this->search = $search;

$args = array(
'number' => '',
'offset' => 0,
'orderby' => $orderby,
'order' => $order,
Expand All @@ -347,12 +346,15 @@ public function generate_report( $report ) {

switch ( $this->view ) {
case 'user':
$args['number'] = '';
$this->items = $this->get_course_statuses( $args );
break;

break;
case 'lesson':
default:
$args['number'] = -1;
$this->items = $this->get_lessons( $args );

break;
}

Expand Down

0 comments on commit 2b1233b

Please sign in to comment.