mirror of
https://github.com/silverstripe/silverstripe-multiform
synced 2024-10-22 11:05:49 +02:00
Update README.md
To compare based on ClassName it is "ClassName" instead of "class" :-D
This commit is contained in:
parent
41d8927602
commit
506fe6cd02
@ -414,7 +414,7 @@ class SurveyForm extends MultiForm
|
|||||||
|
|
||||||
if ($steps) {
|
if ($steps) {
|
||||||
foreach ($steps as $step) {
|
foreach ($steps as $step) {
|
||||||
if($step->class == PersonalDetailsStep::class) {
|
if($step->ClassName == PersonalDetailsStep::class) {
|
||||||
$member = Member::create();
|
$member = Member::create();
|
||||||
$data = $step->loadData();
|
$data = $step->loadData();
|
||||||
|
|
||||||
@ -424,7 +424,7 @@ class SurveyForm extends MultiForm
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($step->class == OrganisationDetailsStep::class) {
|
if ($step->ClassName == OrganisationDetailsStep::class) {
|
||||||
$organisation = Organisation::create();
|
$organisation = Organisation::create();
|
||||||
$data = $step->loadData();
|
$data = $step->loadData();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user