public function updateAction()
 {
     // setting the url to be redirected after create record with success
     // or cancel
     if ($this->_hasParam('id') || $this->_hasParam('person')) {
         $id = $this->_hasParam('id') ? $this->_getParam('id') : $this->_getParam('person');
         $urlRedirect = array('action' => 'getgm', 'controller' => 'person', 'module' => 'persons', 'id' => $id);
         $this->setRedirectActionAfterUpdateSuccess($urlRedirect);
         $this->setRedirectActionAfterUpdateCancel($urlRedirect);
     }
     parent::updateAction();
     // fill the id and name person of the form when is calling with a person's id
     if (($this->_hasParam('id') || $this->_hasParam('person')) && (!$this->getRequest()->isPost() || $this->getRequest()->isPost() && $this->view->form->isErrors())) {
         $id = $this->_hasParam('id') ? $this->_getParam('id') : $this->_getParam('person');
         $f = $this->view->form;
         $elname = $f->getElement('person_name');
         $elid = $f->getElement('id');
         $personDomain = new Persons_Domain_Person();
         $person = $personDomain->getById($id);
         if ($person) {
             $elname->setValue($person->name);
             $elid->setValue($person->id);
         }
     }
 }
 public function updateAction()
 {
     if ($this->_isUserAllowed(App_Module_Acl::ACL_RESOURCE_APPACCOUNT, App_Module_Acl::ACL_RESOURCE_APPACCOUNT_PRIVILEGE_UPDATE)) {
         $this->setRedirectActionAfterUpdateSuccess('show');
         $this->setRedirectActionAfterUpdateCancel('show');
         parent::updateAction();
     }
 }
 public function updateAction()
 {
     parent::updateAction();
     $act = $this->getDomainClass()->getById($this->getParam('id'));
     $this->view->person_recorded = $act->getPerson_recorded();
     $this->view->person_performed = $act->getPerson_performed();
     $this->view->person_helped = $act->getPerson_helped();
 }
 public function updateAction()
 {
     try {
         if ($this->_hasParam('image')) {
             if ($this->_isUserAllowed(null, null)) {
                 return $this->_updateImage();
             }
         } else {
             $url = array('action' => 'getgm', 'controller' => 'person', 'module' => 'persons');
             if ($this->_hasParam('id')) {
                 $url['id'] = $this->_getParam('id');
             }
             $this->setRedirectActionAfterUpdateSuccess($url);
             $this->setRedirectActionAfterUpdateCancel($url);
             parent::updateAction();
         }
     } catch (Exception $e) {
         $this->_addExceptionMessage($e);
     }
 }