#359: Rollback to using existsError for now, fix for #218

This commit is contained in:
garronej 2023-06-15 21:25:54 +02:00
parent 90df7fbdcf
commit edd142bd8b

View File

@ -35,8 +35,8 @@
<#list fieldNames as fieldName>
if(fieldName === "${fieldName}" ){
<#attempt>
<#if '${fieldName}' == 'username' || '${fieldName}' == 'password'>
return <#if messagesPerField.exists('username') || messagesPerField.exists('password')>x<#else>undefined</#if>;
<#if ('${fieldName}' == 'username' || '${fieldName}' == 'password') && messagesPerField.existsError('username', 'password')>
return x;
<#else>
return <#if messagesPerField.exists('${fieldName}')>x<#else>undefined</#if>;
</#if>