mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #2153 from chillu/pulls/form-fortemplate-access
Allow Form->forTemplate() URL access (fixes #788)
This commit is contained in:
commit
bcc09deb08
@ -149,7 +149,11 @@ class Form extends RequestHandler {
|
||||
*/
|
||||
protected $attributes = array();
|
||||
|
||||
private static $allowed_actions = array('handleField', 'httpSubmission');
|
||||
private static $allowed_actions = array(
|
||||
'handleField',
|
||||
'httpSubmission',
|
||||
'forTemplate',
|
||||
);
|
||||
|
||||
/**
|
||||
* Create a new form, with the given fields an action buttons.
|
||||
@ -210,7 +214,7 @@ class Form extends RequestHandler {
|
||||
'GET ' => 'httpSubmission',
|
||||
'HEAD ' => 'httpSubmission',
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* Set up current form errors in session to
|
||||
* the current form if appropriate.
|
||||
|
Loading…
x
Reference in New Issue
Block a user