diff --git a/src/Fields/FieldsContract.php b/src/Fields/FieldsContract.php index 763a8400..df19f2c9 100644 --- a/src/Fields/FieldsContract.php +++ b/src/Fields/FieldsContract.php @@ -157,10 +157,10 @@ public function getCollectionsValuesForResponse(Field $field, FieldResponse $res if ((int) $field->options['dataSource'] !== 0) { $response = BoltPlugin::getModel('Collection')::query() ->find($field->options['dataSource']) - ->values + ?->values ->whereIn('itemKey', $response) ->pluck('itemValue') - ->join(', '); + ->join(', ') ?? ''; } else { $dataSourceClass = new $field->options['dataSource']; $response = $dataSourceClass->getQuery()