twill icon indicating copy to clipboard operation
twill copied to clipboard

`twill:refresh-crops` Fix wrong crops for Blocks

Open ptrckvzn opened this issue 1 year ago • 0 comments

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 avatar Aug 09 '24 14:08 ptrckvzn