mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
ENHANCEMENT RequiredFields->php() uses quotes around title of field, falling back to the name of the field if title isn't available
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@61420 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
5fd0464b68
commit
bb0dd22164
@ -102,7 +102,7 @@ JS;
|
||||
$fieldName,
|
||||
sprintf(
|
||||
_t('Form.FIELDISREQUIRED'),
|
||||
strip_tags($formField->Title())
|
||||
strip_tags('"' . ($formField->Title() ? $formField->Title() : $fieldName) . '"')
|
||||
),
|
||||
"required"
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user