Made the hidden field work the same way as the FormAction()

This commit is contained in:
Sean Harvey 2008-04-23 10:46:11 +00:00
parent 6f07bf39b2
commit dac113fe3d
1 changed files with 2 additions and 1 deletions

View File

@ -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();