mirror of
https://github.com/silverstripe/silverstripe-multiform
synced 2024-10-22 11:05:49 +02:00
Merge pull request #84 from muskie9/pull/loadFromOtherStep83
BUGFIX getValueFromOtherStep() calls protected MultiForm::$session
This commit is contained in:
commit
27552089c1
@ -475,7 +475,7 @@ class MultiFormStep extends DataObject
|
|||||||
{
|
{
|
||||||
// load the steps in the cache, if this one doesn't exist
|
// load the steps in the cache, if this one doesn't exist
|
||||||
if (!array_key_exists('steps_' . $fromStep, $this->step_data_cache)) {
|
if (!array_key_exists('steps_' . $fromStep, $this->step_data_cache)) {
|
||||||
$steps = self::get()->filter('SessionID', $this->form->session->ID);
|
$steps = MultiFormStep::get()->filter('SessionID', $this->form->getMultiFormSession()->ID);
|
||||||
|
|
||||||
if ($steps) {
|
if ($steps) {
|
||||||
foreach ($steps as $step) {
|
foreach ($steps as $step) {
|
||||||
|
Loading…
Reference in New Issue
Block a user