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.
$app->helper(_validation => sub { my($c, $required_fields) = @_;
my $v = $c->validation;
foreach my $item($required_fields->@*){
$v->required($item);
}
return $v;
});my $v = $app->_validation($ref_required_fields);
if( $v->has_error ) { sub{ ... } }--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mojolicious/2514dc71-e198-4277-8d2a-a170f943dca1%40googlegroups.com.
I have installed last version of Mojolicious and I found that the $ ->has_error validation method was working with an error.