Bugfix: SS4 Right click, add page fails

`addForm` receives both POSTs and GETs.  Set the form's `strictFormMethodCheck` to false to avoid `405 Method Not Allowed` error response.  Issue #1846.
This commit is contained in:
Antony Thorpe 2017-06-15 13:53:38 +12:00 committed by GitHub
parent d88a7ba54f
commit fdbe38d444

View File

@ -149,7 +149,7 @@ class CMSPageAddController extends CMSPageEditController
"AddForm",
$fields,
$actions
)->setHTMLID('Form_AddForm');
)->setHTMLID('Form_AddForm')->setStrictFormMethodCheck(false);
$form->setAttribute('data-hints', $this->SiteTreeHints());
$form->setAttribute('data-childfilter', $this->Link('childfilter'));
$form->setValidationResponseCallback(function (ValidationResult $errors) use ($negotiator, $form) {