BUGFIX: fixed incorrect code being commited for the userforms identifier

This commit is contained in:
Will Rossiter 2009-10-15 02:36:43 +00:00
parent 70944fcabb
commit 31141e972d

View File

@ -297,9 +297,9 @@ class UserDefinedForm_Controller extends Page_Controller {
$fieldValidation[$field->Name] = $errorMessage;
$fieldValidationOptions['required'] = true;
$fieldToAdd->addExtraClass('requiredField');
if(self::$required_identifier) {
$fieldToAdd->setLeftTitle($fieldToAdd->getLeftTitle . ' <span class="requiredIdentifier">'. UserDefinedForm::$required_identifier . '</span>');
if(UserDefinedForm::$required_identifier) {
$title = $fieldToAdd->Title() ." <span class='requiredIdentifier'>". UserDefinedForm::$required_identifier . "</span>";
$fieldToAdd->setTitle($title);
}
}