Skip to content

Commit

Permalink
Add support for adminEditUrl accessor in browsers that are not using …
Browse files Browse the repository at this point in the history
…the twill_related table
  • Loading branch information
joyceverheije committed Aug 31, 2023
1 parent ab8635f commit 160e916
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Repositories/Behaviors/HandleBrowsers.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ function ($relatedElement) use ($titleKey, $routePrefix, $relation, $moduleName,
return [
'id' => $relatedElement->id,
'name' => $relatedElement->titleInBrowser ?? $relatedElement->$titleKey,
'edit' => moduleRoute(
'edit' => $relatedElement->adminEditUrl ?? moduleRoute(
$moduleName ?? $relation,
$routePrefix ?? '',
'edit',
Expand Down

0 comments on commit 160e916

Please sign in to comment.