mirror of
https://github.com/silverstripe/silverstripe-multiform
synced 2024-10-22 11:05:49 +02:00
Update README.md
This commit is contained in:
parent
3d5995526c
commit
0d7eb7b83f
10
README.md
10
README.md
@ -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();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user