File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,6 @@ public function __construct(
4040 $ this ->showLink = is_null ($ showLink ) && $ can ? auth ()->guard ($ guard )->user ()->can ($ can , $ arg ) : (bool ) $ showLink ;
4141 $ this ->name = $ name ;
4242 $ this ->multiline = $ multiline ;
43- $ this ->value = $ value ? : ($ name ? $ this ->getBoundValue ($ model , $ name ) : '' );
43+ $ this ->value = ! is_null ( $ value) ? $ value : ($ name ? $ this ->getBoundValue ($ model , $ name ) : '' );
4444 }
4545}
Original file line number Diff line number Diff line change @@ -38,6 +38,6 @@ public function __construct(
3838 $ this ->showLabel = $ showLabel ;
3939 $ this ->name = $ name ;
4040 $ this ->multiline = $ multiline ;
41- $ this ->value = $ value ? : ($ name ? $ this ->getBoundValue ($ model , $ name ) : '' );
41+ $ this ->value = ! is_null ( $ value) ? $ value : ($ name ? $ this ->getBoundValue ($ model , $ name ) : '' );
4242 }
4343}
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ public function __construct(
4545 $ this ->inline = $ inline ;
4646 $ this ->name = $ name ;
4747 $ this ->multiline = $ multiline ;
48- $ this ->value = $ value ? : ($ name ? $ this ->getBoundValue ($ model , $ name ) : '' );
48+ $ this ->value = ! is_null ( $ value) ? $ value : ($ name ? $ this ->getBoundValue ($ model , $ name ) : '' );
4949
5050 $ this ->inlineEntryLabelClass = $ inlineEntryLabelClass ?: $ this ->frameworkConfig ('inline-entry-label-class ' );
5151 $ this ->inlineEntryClass = $ inlineEntryClass ?: $ this ->frameworkConfig ('inline-entry-class ' );
You can’t perform that action at this time.
0 commit comments