Skip to content

Commit

Permalink
Merge pull request #84 from muskie9/pull/loadFromOtherStep83
Browse files Browse the repository at this point in the history
BUGFIX getValueFromOtherStep() calls protected MultiForm::$session
  • Loading branch information
wilr authored Sep 6, 2023
2 parents f48b623 + 0371ca9 commit 2755208
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/MultiFormStep.php
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ public function getValueFromOtherStep($fromStep, $key)
{
// 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) {
Expand Down

0 comments on commit 2755208

Please sign in to comment.