Commit bc32edc8 authored by Sylvain's avatar Sylvain

Mise à jour validation

parent ff5c4342
......@@ -798,10 +798,10 @@ class Field2Bt4
$render = null;
if ($errors->has($this->name)) {
if ($errors->has($this->makeGetterName())) {
$template = '<div class="invalid-feedback">%s</div>' . PHP_EOL;
$render = sprintf($template, $errors->first($this->name));
$render = sprintf($template, $errors->first($this->makeGetterName()));
}
return $render;
......@@ -952,7 +952,7 @@ class Field2Bt4
$templateClassic .= '</div>' . PHP_EOL;
$templatePrefix = '<div class="input-group%s">'. PHP_EOL;
$templatePrefix .= '%s%s%s';
$templatePrefix .= '%s%s%s%s';
$templatePrefix .= '</div>'. PHP_EOL;
// Si prefixe ou suffixe
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment