Skip to content

Commit

Permalink
Merge pull request #287 from lara-zeus/collection-deleted
Browse files Browse the repository at this point in the history
fix collection not found
  • Loading branch information
atmonshi authored May 28, 2024
2 parents 1938128 + b84cac1 commit 86d0312
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Fields/FieldsContract.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 86d0312

Please sign in to comment.