Skip to content

Commit de0f3e2

Browse files
Fix saving Has Many fieldtype (#413)
1 parent 3a0ed5b commit de0f3e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Fieldtypes/HasManyFieldtype.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function process($data)
7979

8080
$model = $resource->model()->firstWhere(
8181
$resource->routeKey(),
82-
request()->route('record') ?? Blink::get('RunwayRouteModel')
82+
request()->route('model') ?? Blink::get('RunwayRouteModel')
8383
);
8484

8585
// If we're adding HasMany relations on a model that doesn't exist yet,

0 commit comments

Comments
 (0)