Commit 27476ded authored by Motch Julien's avatar Motch Julien Committed by Nicolas Widart

change input (#282)

parent 278c18ec
...@@ -198,7 +198,7 @@ Form::macro('normalInput', function ($name, $title, ViewErrorBag $errors, $objec ...@@ -198,7 +198,7 @@ Form::macro('normalInput', function ($name, $title, ViewErrorBag $errors, $objec
$string .= Form::label($name, $title); $string .= Form::label($name, $title);
if (is_object($object)) { if (is_object($object)) {
$currentData = $object->{$name} ?: ''; $currentData = isset($object->{$name}) ? isset($object->{$name}) : '';
} else { } else {
$currentData = null; $currentData = null;
} }
...@@ -228,7 +228,7 @@ Form::macro('normalInputOfType', function ($type, $name, $title, ViewErrorBag $e ...@@ -228,7 +228,7 @@ Form::macro('normalInputOfType', function ($type, $name, $title, ViewErrorBag $e
$string .= Form::label($name, $title); $string .= Form::label($name, $title);
if (is_object($object)) { if (is_object($object)) {
$currentData = $object->{$name} ?: ''; $currentData = isset($object->{$name}) ? isset($object->{$name}) : '';
} else { } else {
$currentData = null; $currentData = null;
} }
......
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