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:
Sean Harvey 2008-08-22 04:16:33 +00:00
parent 5fd0464b68
commit bb0dd22164

View File

@ -102,7 +102,7 @@ JS;
$fieldName,
sprintf(
_t('Form.FIELDISREQUIRED'),
strip_tags($formField->Title())
strip_tags('"' . ($formField->Title() ? $formField->Title() : $fieldName) . '"')
),
"required"
);