mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
MINOR: tidied up code formatting
This commit is contained in:
parent
b3a73eac53
commit
c6768d8412
@ -38,17 +38,16 @@ class FieldEditor extends FormField {
|
||||
|
||||
$fields = $this->form->getRecord()->$relationName();
|
||||
|
||||
if( $this->readonly ) {
|
||||
if($this->readonly) {
|
||||
$readonlyFields = new DataObjectSet();
|
||||
|
||||
foreach( $fields as $field ) {
|
||||
$field->setEditor( $this );
|
||||
$readonlyFields->push( $field->makeReadonly() );
|
||||
foreach($fields as $field) {
|
||||
$field->setEditor($this);
|
||||
$readonlyFields->push($field->makeReadonly());
|
||||
}
|
||||
|
||||
$fields = $readonlyFields;
|
||||
}
|
||||
|
||||
return $fields;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user