Skip to content

Commit

Permalink
Merge pull request #111 from s-ohnishi/v5compatible
Browse files Browse the repository at this point in the history
remove malfunctions
  • Loading branch information
niden committed Mar 29, 2024
2 parents 28b66fd + 199f592 commit 2623b07
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/Controllers/CompaniesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function searchAction(): void
$this->request->getPost()
);

$this->persistent->searchParams = $query->getParams();
$this->persistent->searchParams = ['di' => null] + $query->getParams();
}

$parameters = [];
Expand All @@ -71,7 +71,7 @@ public function searchAction(): void

$paginator = new Paginator([
'model' => Companies::class,
'data' => $companies,
'parameters' => $parameters,
'limit' => 10,
'page' => $this->request->getQuery('page', 'int', 1),
]);
Expand Down
5 changes: 2 additions & 3 deletions src/Controllers/ProductsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ public function searchAction(): void
$this->request->getPost()
);

//$this->persistent->searchParams = $query->getParams();
$this->persistent->searchParams = array('di'=>null) + $query->getParams();
$this->persistent->searchParams = ['di' => null] + $query->getParams();
}

$parameters = [];
Expand All @@ -78,7 +77,7 @@ public function searchAction(): void

$paginator = new Paginator([
'model' => Products::class,
"parameters" => $parameters,
'parameters' => $parameters,
'limit' => 10,
'page' => $this->request->getQuery('page', 'int', 1),
]);
Expand Down
4 changes: 2 additions & 2 deletions src/Controllers/ProducttypesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function searchAction(): void
$this->request->getPost()
);

$this->persistent->searchParams = $query->getParams();
$this->persistent->searchParams = ['di' => null] + $query->getParams();
}

$parameters = [];
Expand All @@ -76,7 +76,7 @@ public function searchAction(): void

$paginator = new Paginator([
'model' => ProductTypes::class,
'data' => $productTypes,
'parameters' => $parameters,
'limit' => 10,
'page' => $this->request->getQuery('page', 'int', 1),
]);
Expand Down

0 comments on commit 2623b07

Please sign in to comment.