BUGFIX Fixed usage of HeaderField arguments in EditableFormHeading

This commit is contained in:
Ingo Schommer 2008-11-01 15:32:36 +00:00
parent b57bc7e58c
commit 87b458bba8

View File

@ -10,8 +10,9 @@ class EditableFormHeading extends EditableFormField {
function getFormField() {
// TODO customise this
return new LabelField( $this->Title, 'FormHeading' );
// return '<h3>' . $this->Title . '</h3>';
$labelField = new LabelField('FormHeadingLabel',$this->Title);
$labelField->addExtraClass('FormHeading');
return $labelField;
}
function showInReports() {