Commit 5fdc06d67734ef7594b7ae8fc52bbb931917717a
1 parent
0ec36e60
Exists in
master
and in
3 other branches
Correctif affichage index des matériels
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
src/Controller/MaterielsController.php
@@ -225,7 +225,8 @@ class MaterielsController extends AppController | @@ -225,7 +225,8 @@ class MaterielsController extends AppController | ||
225 | } | 225 | } |
226 | 226 | ||
227 | $config = TableRegistry::get('Configurations')->find()->where(['id =' => 1])->first(); | 227 | $config = TableRegistry::get('Configurations')->find()->where(['id =' => 1])->first(); |
228 | - $limit = $config['aff_par_defaut']; | 228 | + $limit = $this->request->query('aff'); |
229 | + if (!isset($limit))$limit = $config['aff_par_defaut']; | ||
229 | 230 | ||
230 | $this->paginate = [ | 231 | $this->paginate = [ |
231 | 'limit' => $limit, | 232 | 'limit' => $limit, |