Skip to content
Permalink
Browse files Browse the repository at this point in the history
fixed bug 23029: redirect
  • Loading branch information
alex40724 committed May 11, 2018
1 parent ff9bf29 commit 01a24cf
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions Services/Bookmarks/classes/class.ilBookmarkAdministrationGUI.php
Expand Up @@ -679,13 +679,8 @@ function createBookmark()

ilUtil::sendInfo($lng->txt('bookmark_added'), true);

if($_POST['return_to'])
ilUtil::redirect($_POST['return_to_url']);
else
{
$ilCtrl->saveParameter($this, 'bmf_id');
$ilCtrl->redirect($this, 'view');
}
$ilCtrl->saveParameter($this, 'bmf_id');
$ilCtrl->redirect($this, 'view');
}
}

Expand Down Expand Up @@ -857,10 +852,7 @@ function delete()
*/
function cancel()
{
if($_POST['return_to'])
ilUtil::redirect($_POST['return_to_url']);
else
$this->view();
$this->view();
}

/**
Expand Down

0 comments on commit 01a24cf

Please sign in to comment.