The same code is used in the example of blog included in Mojo::Pg module.
Method has_error is not working in this example too with 8.36 Mojolicious 
version.
The feedback of $v->has_error cannot be used for creating alert message 
about empty field in a web form.
Can you fix it so it worked like in previous versions?

неділя, 12 квітня 2020 р. 14:57:55 UTC+3 користувач Sebastian Riedel 
написав:
>
> I have installed last version of Mojolicious and I found that the $ 
>> ->has_error validation method was working with an error. 
>> When I send data form with empty field, which must be required full, I 
>> get empty value of $v->has_error. This method worked correctly in previous 
>> version of Mojolicious (8.28 and 8.33) I used. 
>> Please explain how to fix this bug.
>>
>
> Your description is very vague, so i can only guess. But you probably want 
> to use the not_empty filter on the affected field.
>
>     https://mojolicious.org/perldoc/Mojolicious/Validator#not_empty
>
> --
> sebastian 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mojolicious+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mojolicious/f6728954-753b-47ac-8ee5-ca226fa9a24c%40googlegroups.com.

Reply via email to