mirror of
https://github.com/silverstripe/silverstripe-multiform
synced 2024-10-22 11:05:49 +02:00
Made the hidden field work the same way as the FormAction()
This commit is contained in:
parent
6f07bf39b2
commit
dac113fe3d
@ -97,7 +97,8 @@ abstract class MultiForm extends Form {
|
||||
$this->setActions();
|
||||
|
||||
// Set a hidden field in the form to define what this form session ID is
|
||||
$this->fields->push(new HiddenField('MultiFormSessionID', false, ($this->stat('url_type') == 'ID') ? $this->session->ID : $this->session->Hash));
|
||||
$urlMethod = $this->stat('url_type');
|
||||
$this->fields->push(new HiddenField('MultiFormSessionID', false, $this->session->$urlMethod));
|
||||
|
||||
// Set up validator from the form step class
|
||||
$this->validator = $currentStep->getValidator();
|
||||
|
Loading…
Reference in New Issue
Block a user