function editAction($bugs_id, $system_id)
 {
     $bugs = Bugs::findFirstById($bugs_id);
     $system = Systems::findFirstById($system_id);
     $form = new BugsForm($bugs);
     $this->view->bugs = $bugs;
     $this->view->system = $system;
     $this->view->page = 'Bugs';
     $this->view->form = $form;
     $this->view->max_number = $this->new_number($system_id);
     if ($this->request->isPost()) {
         $bugs = new Bugs();
         $bugs_id = $this->request->getPost('id');
         $bugs = Bugs::find($activity_id);
         if ($bugs->update($this->request->getPost()) == false) {
             foreach ($bugs_id->getMessages() as $message) {
                 $this->flash->error((string) $message);
             }
         } else {
             $this->flash->success('Edit Activity Success');
             $this->response->redirect('bugs/system/' . $system_id);
         }
     }
 }