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)

This commit is contained in:
Ingo Schommer 2011-03-16 17:52:01 +13:00
parent 4eac937da6
commit dc045d079d

View File

@ -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")) {