MINOR: changing to classname as key value

This commit is contained in:
Peter Thaleikis 2016-01-06 12:50:01 +13:00
parent e5f2b55b8b
commit faf052257f

View File

@ -421,8 +421,6 @@ class MultiFormStep extends DataObject {
/**
* Returns the submitted value, if any, of any steps.
*
* @todo to be removed once https://github.com/silverstripe/silverstripe-multiform/pull/55 is merged in
*
* @param string $fromStep
* @param string $key
* @return mixed
@ -433,7 +431,7 @@ class MultiFormStep extends DataObject {
$steps = MultiFormStep::get()->filter('SessionID', $this->form->session->ID);
if($steps) foreach($steps as $step) {
$this->cache['steps_' . $step] = $step->loadData();
$this->cache['steps_' . $step->ClassName] = $step->loadData();
}
}