_getDataObj()->getData('editImages')) { $this->_setBackUrl($this->_getImagesUrl()); } return $this; } protected function _postUpdate() { parent::_postUpdate(); if ('1' == $this->_getDataObj()->getData('editImages') && ($url = $this->_getImagesUrl())) { $this->_setBackUrl($url); } return $this; } protected function _getImagesUrl() { $categoryId = $this->_getDataObj()->getPrimaryKey(); if ($categoryId) { $url = \Qs_SiteMap::findFirst(null, array('type' => 'Gallery\\Admin\\'), null, 'url'); $url .= '/' . $categoryId; return $url; } return false; } }