MINOR: tidied up code formatting

This commit is contained in:
Will Rossiter 2009-04-19 21:20:52 +00:00
parent b3a73eac53
commit c6768d8412

View File

@ -38,17 +38,16 @@ class FieldEditor extends FormField {
$fields = $this->form->getRecord()->$relationName(); $fields = $this->form->getRecord()->$relationName();
if( $this->readonly ) { if($this->readonly) {
$readonlyFields = new DataObjectSet(); $readonlyFields = new DataObjectSet();
foreach( $fields as $field ) { foreach($fields as $field) {
$field->setEditor( $this ); $field->setEditor($this);
$readonlyFields->push( $field->makeReadonly() ); $readonlyFields->push($field->makeReadonly());
} }
$fields = $readonlyFields; $fields = $readonlyFields;
} }
return $fields; return $fields;
} }