Skip to content
Snippets Groups Projects
Commit f00bc350 authored by Patrick Barroca's avatar Patrick Barroca Committed by Patrick Barroca
Browse files

rel #21425: fix broken sitotheque search

parent 85581613
Branches
Tags
4 merge requests!896Master,!893Master,!885Dev#21425 user comments by domains,!871Dev#21425 user comments by domains
......@@ -100,6 +100,11 @@ abstract class ZendAfi_Controller_Action_Helper_AbstractListViewMode extends Zen
}
protected function getSearchParams() {
return [];
}
public function getBreadcrumb() {
if ($this->getSearchValue())
return [];
......
......@@ -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'));
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment