public function postDispatch()
 {
     $this->oBreadCrumb->show();
     parent::postDispatch();
 }
 public function addAction()
 {
     $iIssueId = intval($this->_getParam('iid'));
     if ($iIssueId && !AM_Model_Db_Table_Abstract::factory('issue')->checkAccess($iIssueId, $this->_aUserInfo)) {
         throw new AM_Controller_Exception_Forbidden('Access denied');
     }
     $oApplication = AM_Model_Db_Table_Abstract::factory('application')->findOneBy('id', $this->iApplicationId);
     /* @var $oApplication AM_Model_Db_Application */
     $sClass = AM_Component_Record_Database_Issue_Abstract::getClassByApplicationType($oApplication->type);
     /* @var string */
     $oComponentRecord = new $sClass($this, 'issue', $iIssueId, $this->iApplicationId);
     $sResult = $oComponentRecord->operation();
     if ($sResult) {
         $oIssue = AM_Model_Db_Table_Abstract::factory('issue')->findOneBy('id', $oComponentRecord->getPrimaryKeyValue());
         //Init export processes
         $oIssue->exportRevisions();
     }
     if ($sResult) {
         $this->_redirect('/issue/edit/iid/' . $oComponentRecord->getPrimaryKeyValue() . '/aid/' . $this->iApplicationId);
     }
     $oComponentRecord->show();
     $oBreadCrumbHelper = new AM_View_Helper_Breadcrumbs($this->view, $this->oDb, $this->getUser(), AM_View_Helper_Breadcrumbs::ISSUE, $this->_getAllParams());
     $oBreadCrumbHelper->show();
 }