From 3df435742ef6d814f411ab9f4d405cc06eba1dab Mon Sep 17 00:00:00 2001 From: michael pereira Date: Wed, 20 Apr 2011 18:35:39 +0200 Subject: API + Fixes --- .../modules/user/controllers/PrebootController.php | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'application/modules/user/controllers/PrebootController.php') diff --git a/application/modules/user/controllers/PrebootController.php b/application/modules/user/controllers/PrebootController.php index ee2a684..7e082d3 100644 --- a/application/modules/user/controllers/PrebootController.php +++ b/application/modules/user/controllers/PrebootController.php @@ -57,11 +57,6 @@ class User_PrebootController extends Zend_Controller_Action $pbsNotifier = new Pbs_Notifier(); $this->view->notification = $pbsNotifier->notify('modify',$result); } - $result = $this->_request->getParam('updateresult'); - if($result != ""){ - $pbsNotifier = new Pbs_Notifier(); - $this->view->notification = $pbsNotifier->notify('update',$result); - } $groupID = $this->membership->getGroupID(); @@ -70,6 +65,9 @@ class User_PrebootController extends Zend_Controller_Action $this->_redirect('/user/index'); $this->view->prebootlist = $this->prebootMapper->findBy(array("groupID" => $groupID)); + foreach ($this->view->prebootlist as $preboot){ + $preboot->setCreated(date(Zend_Registry::get('dateformat'),$preboot->getCreated())); + } // Search $search = $this->_request->getParam('search'); @@ -93,13 +91,6 @@ class User_PrebootController extends Zend_Controller_Action $this->view->pagination = $pagination->pagination(); $this->view->page = $pagination->getRequestPage(); - $this->view->update = array(); - - $update = $this->_request->getParam('checkupdate'); - - foreach ($this->view->prebootlist as $preboot){ - $this->view->update[$preboot->getID()] = $update && $this->checkupdateAction($preboot); - } } public function searchAction(){ -- cgit v1.2.3-55-g7522