Skip to content

Commit

Permalink
Merge pull request #129 from creative-commoners/pulls/0.4/stop-depr
Browse files Browse the repository at this point in the history
API Stop using deprecated API
  • Loading branch information
sabina-talipova authored Nov 10, 2022
2 parents da63f28 + e45151e commit 806254d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/BasicFieldsTestPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -313,13 +313,13 @@ public function getCMSFields()
$disabledField->setTitle($disabledField->Title() . ' (disabled)');
$disabledField->setName($disabledField->getName() . '_disabled');
$disabledField->setValue($this->getField($field->getName()));
$tabObj->insertAfter($disabledField, $field->getName());
$tabObj->insertAfter($field->getName(), $disabledField);

$readonlyField = $field->performReadonlyTransformation();
$readonlyField->setTitle($readonlyField->Title() . ' (readonly)');
$readonlyField->setName($readonlyField->getName() . '_readonly');
$readonlyField->setValue($this->getField($field->getName()));
$tabObj->insertAfter($readonlyField, $field->getName());
$tabObj->insertAfter($field->getName(), $readonlyField);
}
}

Expand Down

0 comments on commit 806254d

Please sign in to comment.