From 0371ca995ab5fe9a0222817905302f609c47df6a Mon Sep 17 00:00:00 2001 From: Nic Horstmeier Date: Wed, 11 Nov 2020 09:43:28 -0600 Subject: [PATCH] BUGFIX getvValueFromOtherStep() can't return proper data - BUGFIX getValueFromOtherStep() calls protected MultiForm::$session - Use the provided `MultiForm::getMultiFormSession()` method to get the proper result. - BUGFIX getValueFromOtherStep() only fetches subclass steps for the session disallowing access to other class step data --- src/Models/MultiFormStep.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Models/MultiFormStep.php b/src/Models/MultiFormStep.php index 5dd96ad..93501bb 100644 --- a/src/Models/MultiFormStep.php +++ b/src/Models/MultiFormStep.php @@ -475,7 +475,7 @@ class MultiFormStep extends DataObject { // load the steps in the cache, if this one doesn't exist 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) { foreach ($steps as $step) {