API Remove deprecated code (#130)

This commit is contained in:
Sabina Talipova 2022-12-08 10:44:50 +13:00 committed by GitHub
parent 6257ac9e9d
commit 5eee11f4a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -313,13 +313,13 @@ class BasicFieldsTestPage extends TestPage
$disabledField->setTitle($disabledField->Title() . ' (disabled)'); $disabledField->setTitle($disabledField->Title() . ' (disabled)');
$disabledField->setName($disabledField->getName() . '_disabled'); $disabledField->setName($disabledField->getName() . '_disabled');
$disabledField->setValue($this->getField($field->getName())); $disabledField->setValue($this->getField($field->getName()));
$tabObj->insertAfter($disabledField, $field->getName()); $tabObj->insertAfter($field->getName(), $disabledField);
$readonlyField = $field->performReadonlyTransformation(); $readonlyField = $field->performReadonlyTransformation();
$readonlyField->setTitle($readonlyField->Title() . ' (readonly)'); $readonlyField->setTitle($readonlyField->Title() . ' (readonly)');
$readonlyField->setName($readonlyField->getName() . '_readonly'); $readonlyField->setName($readonlyField->getName() . '_readonly');
$readonlyField->setValue($this->getField($field->getName())); $readonlyField->setValue($this->getField($field->getName()));
$tabObj->insertAfter($readonlyField, $field->getName()); $tabObj->insertAfter($field->getName(), $readonlyField);
} }
} }