Commit bc32edc8 authored by Sylvain's avatar Sylvain

Mise à jour validation

parent ff5c4342
...@@ -34,6 +34,6 @@ ...@@ -34,6 +34,6 @@
}, },
"require-dev": { "require-dev": {
"laravel/framework": "5.8.x", "laravel/framework": "5.8.x",
"goldenscarab/modulus-helpers": "0.1.6" "goldenscarab/modulus-helpers": "0.1.9"
} }
} }
...@@ -798,10 +798,10 @@ class Field2Bt4 ...@@ -798,10 +798,10 @@ class Field2Bt4
$render = null; $render = null;
if ($errors->has($this->name)) { if ($errors->has($this->makeGetterName())) {
$template = '<div class="invalid-feedback">%s</div>' . PHP_EOL; $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; return $render;
...@@ -952,7 +952,7 @@ class Field2Bt4 ...@@ -952,7 +952,7 @@ class Field2Bt4
$templateClassic .= '</div>' . PHP_EOL; $templateClassic .= '</div>' . PHP_EOL;
$templatePrefix = '<div class="input-group%s">'. PHP_EOL; $templatePrefix = '<div class="input-group%s">'. PHP_EOL;
$templatePrefix .= '%s%s%s'; $templatePrefix .= '%s%s%s%s';
$templatePrefix .= '</div>'. PHP_EOL; $templatePrefix .= '</div>'. PHP_EOL;
// Si prefixe ou suffixe // 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