Skip to content

Commit

Permalink
fix(controller): retain the state of modifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
KennethTrecy committed Sep 16, 2023
1 parent 9614daa commit 36716bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/Controllers/BaseOwnedResourceController.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@ public function index()
$scoped_model = $model->limitSearchToUser($model, $current_user);

$filter = $request->getVar("filter") ?? [];
$scoped_model = $model->filterList($scoped_model, $filter);
$scoped_model = $scoped_model->filterList($scoped_model, $filter);

$sort = $request->getVar("sort") ?? [];
$scoped_model = $model->sortList($scoped_model, $sort);
$scoped_model = $scoped_model->sortList($scoped_model, $sort);

$page = $request->getVar("page") ?? [];
$scoped_model = $model->paginateList($scoped_model, $page);
$scoped_model = $scoped_model->paginateList($scoped_model, $page);

$overall_filtered_count = model(static::getModelName(), false);
$overall_filtered_count = $overall_filtered_count->limitSearchToUser(
Expand Down

0 comments on commit 36716bb

Please sign in to comment.