Merge pull request #84 from muskie9/pull/loadFromOtherStep83

BUGFIX getValueFromOtherStep() calls protected MultiForm::$session
This commit is contained in:
Will Rossiter 2023-09-06 20:23:50 +12:00 committed by GitHub
commit 27552089c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {