Fixes issue #325

Thanks to @aygee for pointing out some missing parts
This commit is contained in:
mlantz committed 2017-05-15 00:00:52 -04:00
1 parent c3b49e0a56
commit 2806986b41
1 file changed
+1 -1
+1 -1
View File
@@ -1104,7 +1104,7 @@ class FormBuilder
$hasNullMiddleware = app("Illuminate\Contracts\Http\Kernel")
->hasMiddleware(ConvertEmptyStringsToNull::class);
if ($hasNullMiddleware && is_null($value)) {
if ($hasNullMiddleware && is_null($this->old($name)) && $this->view->shared('errors')->count() > 0) {
return null;
}
}