Skip to content

Commit 8ea098c

Browse files
committed
Fixed accidentally removing if statement.
1 parent 33619ce commit 8ea098c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Fieldtypes/BaseFieldtype.php

+1
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ public function shallowAugment($values)
243243
{
244244
$resource = Runway::findResource($this->config('resource'));
245245

246+
if (($values instanceof HasMany) || ($values instanceof MorphToMany)) {
246247
$results = $values
247248
->get()
248249
->map->toShallowAugmentedArray()

0 commit comments

Comments
 (0)