From 85d44428911e459609d12f0b31da69bf4d3276e3 Mon Sep 17 00:00:00 2001 From: Nadar Date: Fri, 6 Sep 2024 10:20:13 +0000 Subject: [PATCH 1/2] images without width & height no filter apply --- src/helpers/BlockHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/BlockHelper.php b/src/helpers/BlockHelper.php index 037b4e86..609c5e16 100644 --- a/src/helpers/BlockHelper.php +++ b/src/helpers/BlockHelper.php @@ -122,7 +122,7 @@ public static function imageUpload(string|int|null $value, bool|string $applyFil return false; } - if ($applyFilter && is_string($applyFilter)) { + if ($applyFilter && is_string($applyFilter) && ($image->getResolutionHeight() !== 0 && $image->getResolutionWidth() !== 0)) { $filter = $image->applyFilter($applyFilter); if ($filter) { From 42c00e888438074611d8d28c96585c98482e6dc7 Mon Sep 17 00:00:00 2001 From: nadar Date: Fri, 6 Sep 2024 10:20:49 +0000 Subject: [PATCH 2/2] Apply php-cs-fixer changes --- src/models/NavItem.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/models/NavItem.php b/src/models/NavItem.php index 007ed741..3887febc 100644 --- a/src/models/NavItem.php +++ b/src/models/NavItem.php @@ -3,7 +3,6 @@ namespace luya\cms\models; use luya\admin\base\GenericSearchInterface; - use luya\admin\helpers\Angular; use luya\admin\models\Lang; use luya\admin\models\User;