Skip to content

Commit

Permalink
#4148 - Build-in API support (group edit)
Browse files Browse the repository at this point in the history
  • Loading branch information
romanlesnikov committed Jul 26, 2023
1 parent 0735b5b commit 1b65c22
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ protected function redirectAfterEdit($aContentInfo)
$sUrl = 'page.php?i=' . $CNF['URI_VIEW_ENTRY'] . '&id=' . $aContentInfo[$CNF['FIELD_ID']];
}

if (bx_is_api())
return bx_api_get_block('redirect', ['uri' => '/' . BxDolPermalinks::getInstance()->permalink($sUrl), 'timeout' => 1000]);

bx_alert($this->_oModule->getName(), 'redirect_after_edit', 0, false, array(
'content' => $aContentInfo,
'override_result' => &$sUrl,
Expand Down

0 comments on commit 1b65c22

Please sign in to comment.