From dc045d079d6b80279f27bab2f10391a005159ea4 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Wed, 16 Mar 2011 17:52:01 +1300 Subject: [PATCH] BUGFIX Allowing POST data in LeftAndMain->currentPageID() in order to fix stricter form submission validations in RequestHandler (checks for valid form action before executing e.g. 'save' command, hence needs to construct a correct form state) --- code/LeftAndMain.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/LeftAndMain.php b/code/LeftAndMain.php index a1729b40..2dd9d7a1 100644 --- a/code/LeftAndMain.php +++ b/code/LeftAndMain.php @@ -1001,8 +1001,8 @@ class LeftAndMain extends Controller { * @return int */ public function currentPageID() { - if($this->request->getVar('ID')) { - return $this->request->getVar('ID'); + if($this->request->requestVar('ID')) { + return $this->request->requestVar('ID'); } elseif ($this->request->param('ID') && is_numeric($this->request->param('ID'))) { return $this->request->param('ID'); } elseif(Session::get("{$this->class}.currentPage")) {