File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
build/media_source/system/js/fields Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -117,11 +117,11 @@ class JFormValidator {
117117 const elMsg = document . createElement ( 'span' ) ;
118118 elMsg . classList . add ( 'form-control-feedback' ) ;
119119 if ( empty && empty === 'checkbox' ) {
120- elMsg . innerHTML = Joomla . sanitizeHtml ( message ) || Joomla . sanitizeHtml ( Joomla . Text . _ ( 'JLIB_FORM_FIELD_REQUIRED_CHECK' ) ) ;
120+ elMsg . innerHTML = message !== null ? Joomla . sanitizeHtml ( message ) : Joomla . sanitizeHtml ( Joomla . Text . _ ( 'JLIB_FORM_FIELD_REQUIRED_CHECK' ) ) ;
121121 } else if ( empty && empty === 'value' ) {
122- elMsg . innerHTML = Joomla . sanitizeHtml ( message ) || Joomla . sanitizeHtml ( Joomla . Text . _ ( 'JLIB_FORM_FIELD_REQUIRED_VALUE' ) ) ;
122+ elMsg . innerHTML = message !== null ? Joomla . sanitizeHtml ( message ) : Joomla . sanitizeHtml ( Joomla . Text . _ ( 'JLIB_FORM_FIELD_REQUIRED_VALUE' ) ) ;
123123 } else {
124- elMsg . innerHTML = Joomla . sanitizeHtml ( message ) || Joomla . sanitizeHtml ( Joomla . Text . _ ( 'JLIB_FORM_FIELD_INVALID_VALUE' ) ) ;
124+ elMsg . innerHTML = message !== null ? Joomla . sanitizeHtml ( message ) : Joomla . sanitizeHtml ( Joomla . Text . _ ( 'JLIB_FORM_FIELD_INVALID_VALUE' ) ) ;
125125 }
126126
127127 if ( label ) {
You can’t perform that action at this time.
0 commit comments