Skip to content

Commit 623ae62

Browse files
fix ternary operator on edit view.
1 parent 8d897e0 commit 623ae62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Migrations/SyntaxBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ private function htmlField($column, $variable, $field, $type)
412412

413413
if($type == 'view-edit-content')
414414
{
415-
$value = '{{ old("'.$column.'") or $'.$variable.'->'.$column.' }}';
415+
$value = '{{ is_null(old("'.$column.'")) ? $'.$variable.'->'.$column.' : old("'.$column.'") }}';
416416
}
417417

418418
switch ($field['type']) {

0 commit comments

Comments
 (0)