mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
BUGFIX: fixed incorrect code being commited for the userforms identifier
This commit is contained in:
parent
70944fcabb
commit
31141e972d
@ -297,9 +297,9 @@ class UserDefinedForm_Controller extends Page_Controller {
|
|||||||
$fieldValidation[$field->Name] = $errorMessage;
|
$fieldValidation[$field->Name] = $errorMessage;
|
||||||
$fieldValidationOptions['required'] = true;
|
$fieldValidationOptions['required'] = true;
|
||||||
$fieldToAdd->addExtraClass('requiredField');
|
$fieldToAdd->addExtraClass('requiredField');
|
||||||
|
if(UserDefinedForm::$required_identifier) {
|
||||||
if(self::$required_identifier) {
|
$title = $fieldToAdd->Title() ." <span class='requiredIdentifier'>". UserDefinedForm::$required_identifier . "</span>";
|
||||||
$fieldToAdd->setLeftTitle($fieldToAdd->getLeftTitle . ' <span class="requiredIdentifier">'. UserDefinedForm::$required_identifier . '</span>');
|
$fieldToAdd->setTitle($title);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user