Commit 416bbf64 authored by Micheal Mand's avatar Micheal Mand Committed by Nicolas Widart

Fix normalInput and normalInputOfType setting value to '1' instead of value (#283)

Signed-off-by: 's avatarMicheal Mand <micheal@kmdwebdesigns.com>
parent 27476ded
......@@ -198,7 +198,7 @@ Form::macro('normalInput', function ($name, $title, ViewErrorBag $errors, $objec
$string .= Form::label($name, $title);
if (is_object($object)) {
$currentData = isset($object->{$name}) ? isset($object->{$name}) : '';
$currentData = isset($object->{$name}) ? $object->{$name} : '';
} else {
$currentData = null;
}
......@@ -228,7 +228,7 @@ Form::macro('normalInputOfType', function ($type, $name, $title, ViewErrorBag $e
$string .= Form::label($name, $title);
if (is_object($object)) {
$currentData = isset($object->{$name}) ? isset($object->{$name}) : '';
$currentData = isset($object->{$name}) ? $object->{$name} : '';
} else {
$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