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

twill:refresh-crops Fix wrong crops for Blocks #2642

Merged
merged 2 commits into from
Oct 14, 2024

Conversation

ptrckvzn
Copy link
Member

@ptrckvzn ptrckvzn commented Aug 9, 2024

Description

php artisan twill:refresh-crops \\A17\\Twill\\Models\\Block block-image was returning an error "roleName not found" becasue getMediaParams() it returning config('twill.default_crops') preventing from getting to the TwillBlock line. The returned array is then wrong for Blocks.

This change checks is the model is an instance of blocks and then return the appropriate arrays of media params.

Related Issues

none

@ptrckvzn ptrckvzn requested a review from ifox August 9, 2024 14:55
@ptrckvzn ptrckvzn changed the title Fix wrong crops for Blocks twill:refresh-crops Fix wrong crops for Blocks Aug 9, 2024
@ifox ifox merged commit ed890eb into area17:3.x Oct 14, 2024
1 of 8 checks passed
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