mirror of
https://github.com/silverstripe/silverstripe-frameworktest
synced 2024-10-22 09:06:02 +00:00
MINOR Fixed FormField->Name() usage
This commit is contained in:
parent
04cf3c6d7b
commit
e815c5bf09
@ -117,13 +117,13 @@ class BasicFieldsTestPage extends TestPage {
|
|||||||
foreach($tabObj->FieldList() as $field) {
|
foreach($tabObj->FieldList() as $field) {
|
||||||
$disabledField = $field->performDisabledTransformation();
|
$disabledField = $field->performDisabledTransformation();
|
||||||
$disabledField->setTitle($disabledField->Title() . ' (disabled)');
|
$disabledField->setTitle($disabledField->Title() . ' (disabled)');
|
||||||
$disabledField->setName($disabledField->Name() . '_disabled');
|
$disabledField->setName($disabledField->getName() . '_disabled');
|
||||||
$tabObj->insertAfter($disabledField, $field->Name());
|
$tabObj->insertAfter($disabledField, $field->getName());
|
||||||
|
|
||||||
$readonlyField = $field->performReadonlyTransformation();
|
$readonlyField = $field->performReadonlyTransformation();
|
||||||
$readonlyField->setTitle($readonlyField->Title() . ' (readonly)');
|
$readonlyField->setTitle($readonlyField->Title() . ' (readonly)');
|
||||||
$readonlyField->setName($readonlyField->Name() . '_readonly');
|
$readonlyField->setName($readonlyField->getName() . '_readonly');
|
||||||
$tabObj->insertAfter($readonlyField, $field->Name());
|
$tabObj->insertAfter($readonlyField, $field->getName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user