Skip to content

Commit

Permalink
Course type filter correction
Browse files Browse the repository at this point in the history
  • Loading branch information
NuwanJ committed Oct 23, 2024
1 parent 89218df commit 3c8b823
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Http/Livewire/Backend/CourseTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function query(): Builder
{
return Course::query()
->when($this->getFilter('academic_program'), fn($query, $type) => $query->where('academic_program', $type))
->when($this->getFilter('semester_id'), fn($query, $type) => $query->where('semester_id', $type))
->when($this->getFilter('type'), fn($query, $type) => $query->where('type', $type))
->when($this->getFilter('version'), fn($query, $version) => $query->where('version', $version));
}

Expand Down Expand Up @@ -80,4 +80,4 @@ public function rowView(): string
{
return 'backend.courses.index-table-row';
}
}
}

0 comments on commit 3c8b823

Please sign in to comment.