Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for custom $primaryKey #12

Merged
merged 1 commit into from Feb 26, 2021
Merged

Fix for custom $primaryKey #12

merged 1 commit into from Feb 26, 2021

Conversation

richwild
Copy link
Contributor

@richwild richwild commented Feb 26, 2021

On a Model with a custom $primaryKey set, I get the following error on its index page:

Illuminate\Routing\Exceptions\UrlGenerationException Missing required parameter for [Route: statamic.cp.runway.edit] [URI: cp/runway/{model}/{record}] [Missing parameter: record]. (View: vendor/doublethreedigital/runway/resources/views/index.blade.php)

Changing to getRouteKeyName() instead of getRouteKey() fixes the error for me.

@duncanmcclean
Copy link
Member

duncanmcclean commented Feb 26, 2021

Thanks! I'll look over this PR this evening after I'm done with work.

@duncanmcclean duncanmcclean merged commit cc9e2f3 into statamic-rad-pack:master Feb 26, 2021
@duncanmcclean
Copy link
Member

Merged and tagged as part of v1.0.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants