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

Fixed custom path generators for Media with morphed map relations #3191

Merged
merged 4 commits into from
Mar 6, 2023

Conversation

aprokopenko
Copy link
Contributor

Hi, we already reported this issue for v9 version and created the Pull Request for v9. However, you asked then to create the PR for v10 first.

Finally, I had time to do that.

Issue:
When using custom path generators for models and Media model has morph map strings, not Model names it doesn't work.

Furthermore, I found the related discussions and I guess you had similar PR in the past:
#3034

@aprokopenko
Copy link
Contributor Author

I fixed unit tests and add a new one, to the option case, which this PR is a fix for

@freekmurze freekmurze merged commit 79b7295 into spatie:main Mar 6, 2023
@freekmurze
Copy link
Member

Thanks!

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.

2 participants