Skip to content

Commit

Permalink
Ticket #2372
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonLV committed Sep 13, 2019
1 parent f614c1a commit 97c4f36
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/base/files/classes/BxBaseModFilesFormsEntryHelper.php
Expand Up @@ -77,6 +77,12 @@ protected function addDataFormAction ($sDisplay = false, $sCheckFunction = false
$sResult = $this->onDataAddAfter (getLoggedId(), $iContentId);
if ($sResult)
return $sResult;

if (!($aContentInfo = $this->_oModule->_oDb->getContentInfoById($iContentId)))
return MsgBox(_t('_sys_txt_error_occured'));

// Create alert about the completed action.
$this->_oModule->alertAfterAdd($aContentInfo);
}

return array('need_redirect_after_action' => true, 'content_ids_array' => $aContentIds);
Expand Down

0 comments on commit 97c4f36

Please sign in to comment.