File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 3030 @endif
3131
3232 <option value =" {{ $item -> getKey () } }" selected >
33- {{ $item -> { $field [' value ' ] ?? $field [' attribute' ]} } }
33+ {{ $item -> {isset ( $field [' option_label ' ]) ? $field [ ' option_label ' ] : $field [' attribute' ]} } }
3434 </option >
3535 @endif
3636 @endif
113113 var result = {
114114 results: $ .map (data .data , function (item ) {
115115 return {
116- text: item[" {{ $field [' value ' ] ?? $field [' attribute' ] } }" ],
116+ text: item[" {{ isset ( $field [' option_label ' ]) ? $field [ ' option_label ' ] : $field [' attribute' ] } }" ],
117117 id: item[" {{ $connected_entity_key_name } }" ]
118118 }
119119 }),
Original file line number Diff line number Diff line change 2323 @endphp
2424 @endif
2525 <option value =" {{ $item -> getKey () } }" selected >
26- {{ $item -> {$field [' value ' ] ?? $field [' attribute' ]} } }
26+ {{ $item -> {isset ( $field [' option_label ' ]) ? $field [ ' option_label ' ] : $field [' attribute' ]} } }
2727 </option >
2828 @endforeach
2929 @endif
9292 return {
9393 results: $ .map (data .data , function (item ) {
9494 return {
95- text: item[" {{ $field [' value ' ] ?? $field [' attribute' ] } }" ],
95+ text: item[" {{ isset ( $field [' option_label ' ]) ? $field [ ' option_label ' ] : $field [' attribute' ] } }" ],
9696 id: item[" {{ $connected_entity_key_name } }" ]
9797 }
9898 }),
You can’t perform that action at this time.
0 commit comments