mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
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:
parent
4eac937da6
commit
dc045d079d
@ -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")) {
|
||||
|
Loading…
Reference in New Issue
Block a user