Update README.md

This commit is contained in:
Will Rossiter 2023-09-06 20:57:57 +12:00 committed by GitHub
parent 3d5995526c
commit 0d7eb7b83f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,5 @@
# MultiForm Module # MultiForm Module
[![Build Status](https://travis-ci.com/silverstripe/silverstripe-multiform.svg?branch=master)](https://travis-ci.org/silverstripe/silverstripe-multiform)
[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/silverstripe/silverstripe-multiform.svg)](https://scrutinizer-ci.com/g/silverstripe/silverstripe-multiform/?branch=master) [![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/silverstripe/silverstripe-multiform.svg)](https://scrutinizer-ci.com/g/silverstripe/silverstripe-multiform/?branch=master)
[![Code Coverage](https://img.shields.io/codecov/c/github/silverstripe/silverstripe-multiform.svg)](https://codecov.io/gh/silverstripe/silverstripe-multiform) [![Code Coverage](https://img.shields.io/codecov/c/github/silverstripe/silverstripe-multiform.svg)](https://codecov.io/gh/silverstripe/silverstripe-multiform)
@ -383,14 +382,13 @@ class SurveyForm extends MultiForm
{ {
parent::finish($data, $form); parent::finish($data, $form);
$steps = DataObject::get( $steps = MultiFormStep::get()->filter([
MultiFormStep::class, "SessionID" => $this->session->ID
"SessionID = {$this->session->ID}" ]);
);
if ($steps) { if ($steps) {
foreach ($steps as $step) { foreach ($steps as $step) {
if($step->ClassName == PersonalDetailsStep::class) { if ($step->ClassName == PersonalDetailsStep::class) {
$member = Member::create(); $member = Member::create();
$data = $step->loadData(); $data = $step->loadData();