summaryrefslogtreecommitdiffstats
path: root/application/modules/user/controllers/ClientController.php
diff options
context:
space:
mode:
authorSimon2011-04-04 17:09:57 +0200
committerSimon2011-04-04 17:09:57 +0200
commit6511fb075385b9fc25ade2d4bd331e742193960e (patch)
tree5659fd268ad03c1064d4ee7a00b62545e878822d /application/modules/user/controllers/ClientController.php
parentMerge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2 (diff)
downloadpbs2-6511fb075385b9fc25ade2d4bd331e742193960e.tar.gz
pbs2-6511fb075385b9fc25ade2d4bd331e742193960e.tar.xz
pbs2-6511fb075385b9fc25ade2d4bd331e742193960e.zip
client-suche verändert
Diffstat (limited to 'application/modules/user/controllers/ClientController.php')
-rw-r--r--application/modules/user/controllers/ClientController.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/application/modules/user/controllers/ClientController.php b/application/modules/user/controllers/ClientController.php
index acb6a65..c722a49 100644
--- a/application/modules/user/controllers/ClientController.php
+++ b/application/modules/user/controllers/ClientController.php
@@ -49,13 +49,14 @@ class User_ClientController extends Zend_Controller_Action
$clientMapper = new Application_Model_ClientMapper();
$clientsInGroup = $clientMapper->findBy('groupID',$this->membership->getGroupID());
+ // Search
$search = $this->_request->getParam('search');
+ $mySearch = new Pbs_Search();
+ $mySearch->setSearchTerm($search);
+ $this->view->searchform = $mySearch->searchForm();
if($search != ''){
- $this->view->search = $search;
- $mySearch = new Pbs_Search();
- $mySearch->setSearchTerm($search);
- $clientsInGroup = $mySearch->search($clientsInGroup);
- $this->view->searchterms = $mySearch->getSearchTerms();
+ $this->view->search = $search;
+ $clientsInGroup = $mySearch->search($clientsInGroup);
}
// Pagination