BUGFIX: Readonly TreeMultiSelectField has form linked properly

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@96362 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Luke Hudson 2010-01-05 04:48:54 +00:00 committed by Sam Minnee
parent 30f332cd21
commit ad79fe2d9c

View File

@ -85,7 +85,10 @@ HTML;
* Changes this field to the readonly field.
*/
function performReadonlyTransformation() {
return new TreeMultiselectField_Readonly($this->name, $this->title, $this->sourceObject, $this->keyField, $this->labelField);
$field = new TreeMultiselectField_Readonly($this->name, $this->title, $this->sourceObject, $this->keyField, $this->labelField);
$field->addExtraClass($this->extraClass());
$field->setForm($this->form);
return $field;
}
}