From 5726ee2737d36e5200be44fac8bc5e57653b20c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 14 Jun 2024 10:03:07 +0200 Subject: [PATCH] Match product image against None Closes #13337 (grafted from 9d0b8fe079ee9b54a49d1b623129c339492254d6) --HG-- branch : 7.0 --- modules/product_image/product.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/product_image/product.py b/modules/product_image/product.py index 31062f5cd4..328cd837c0 100644 --- a/modules/product_image/product.py +++ b/modules/product_image/product.py @@ -72,7 +72,7 @@ class ImageURLMixin: del pattern[key] pattern = {k: bool(int(v)) for k, v in pattern.items()} for image in self.images_used: - if image.match(pattern): + if image.match(pattern, match_none=True): yield image