diff --git a/library/ZendAfi/Controller/Action/Helper/AbstractListViewMode.php b/library/ZendAfi/Controller/Action/Helper/AbstractListViewMode.php index 1bea03cbd72930228b9a5d43364b8a8ba4b66819..8e193c20a748d46b2e007ec51fd6e576adb9e93b 100644 --- a/library/ZendAfi/Controller/Action/Helper/AbstractListViewMode.php +++ b/library/ZendAfi/Controller/Action/Helper/AbstractListViewMode.php @@ -100,6 +100,11 @@ abstract class ZendAfi_Controller_Action_Helper_AbstractListViewMode extends Zen } + protected function getSearchParams() { + return []; + } + + public function getBreadcrumb() { if ($this->getSearchValue()) return []; diff --git a/library/ZendAfi/Controller/Action/Helper/SitothequeListViewMode.php b/library/ZendAfi/Controller/Action/Helper/SitothequeListViewMode.php index ec3be7dd4aa8d4416492c64a34d9f72234d73c30..3405694a30cbfc17f4db971a13fd0b61f88a5f82 100644 --- a/library/ZendAfi/Controller/Action/Helper/SitothequeListViewMode.php +++ b/library/ZendAfi/Controller/Action/Helper/SitothequeListViewMode.php @@ -78,6 +78,12 @@ class ZendAfi_Controller_Action_Helper_SitothequeListViewMode extends ZendAfi_Co } + protected function getSearchParams() { + return ['where' => 'titre like \'%' . trim($this->getSearch()) . '%\'', + 'order' => 'titre']; + } + + public function getDefaultModel() { return Class_SitothequeCategorie::find($this->getRequestParam('id_cat')); }