mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX fixed ss.i18n.sprintf() call in Validator.js
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@64142 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
6fa55568ee
commit
96a448a4b2
@ -147,7 +147,7 @@ function require(fieldName,cachedError) {
|
||||
fieldlabel = "this field";
|
||||
}
|
||||
|
||||
var errorMessage = ss.i18n.printf(ss.i18n._t('VALIDATOR.FIELDREQUIRED'), fieldLabel);
|
||||
var errorMessage = ss.i18n.sprintf(ss.i18n._t('VALIDATOR.FIELDREQUIRED'), fieldLabel);
|
||||
if(baseEl.requiredErrorMsg) errorMessage = baseEl.requiredErrorMsg;
|
||||
else if(_CURRENT_FORM.requiredErrorMsg) errorMessage = _CURRENT_FORM.requiredErrorMsg;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user