mirror of
https://github.com/silverstripe/silverstripe-multiform
synced 2024-10-22 11:05:49 +02:00
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
This commit is contained in:
parent
41d8927602
commit
0371ca995a
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user