|
|
@@ -19,21 +19,14 @@ class BxClssFormsEntryHelper extends BxBaseModTextFormsEntryHelper
|
|
|
parent::__construct($oModule);
|
|
|
}
|
|
|
|
|
|
- protected function redirectAfterDelete($aContentInfo)
|
|
|
+ protected function redirectAfterDelete($aContentInfo, $sUrl = '')
|
|
|
{
|
|
|
$CNF = &$this->_oModule->_oConfig->CNF;
|
|
|
|
|
|
- if ($aContentInfo[$CNF['FIELD_ALLOW_VIEW_TO']] < 0)
|
|
|
- $oProfileContext = BxDolProfile::getInstance(abs($aContentInfo[$CNF['FIELD_ALLOW_VIEW_TO']]));
|
|
|
-
|
|
|
- $sUrl = BX_DOL_URL_ROOT;
|
|
|
- if ($oProfileContext)
|
|
|
+ if ($aContentInfo[$CNF['FIELD_ALLOW_VIEW_TO']] < 0 && ($oProfileContext = BxDolProfile::getInstance(abs($aContentInfo[$CNF['FIELD_ALLOW_VIEW_TO']]))) !== false)
|
|
|
$sUrl = $oProfileContext->getUrl();
|
|
|
|
|
|
- $this->_redirectAndExit($sUrl, true, array(
|
|
|
- 'account_id' => getLoggedId(),
|
|
|
- 'profile_id' => bx_get_logged_profile_id(),
|
|
|
- ));
|
|
|
+ return parent::redirectAfterDelete($aContentInfo, $sUrl);
|
|
|
}
|
|
|
}
|
|
|
|