From bcaec637281f02ad980a43596f57fb3ff7f5ad87 Mon Sep 17 00:00:00 2001 From: SecretR Date: Wed, 6 Feb 2013 11:46:20 +0200 Subject: [PATCH] fixes #86 - News admin "stay in edit mode" doesn't work --- e107_admin/newspost.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/e107_admin/newspost.php b/e107_admin/newspost.php index cfc844e4c..9fdac3c42 100644 --- a/e107_admin/newspost.php +++ b/e107_admin/newspost.php @@ -1204,14 +1204,14 @@ class admin_newspost return false; } $this->clear_cache(); - + if(isset($_POST['create_edit_stay']) && !empty($_POST['create_edit_stay'])) { - if($this->getSubAction() != 'edit') + if($this->getAction() != 'edit') { session_write_close(); - $rurl = e_SELF.(varsettrue($ret['id']) ? "?create.edit.".$ret['id'] : ''); - header('Location:'.($rurl ? $rurl : e_SELF)); + $rurl = e_SELF.(vartrue($ret['news_id']) ? '?mode='.$_GET['mode'].'&action=edit&id='.$ret['news_id'] : ''); + header('Location: '.$rurl); exit; } }