Match product image against None

Closes #13337
(grafted from 9d0b8fe079ee9b54a49d1b623129c339492254d6)

--HG--
branch : 7.0
This commit is contained in:
Cédric Krier committed 2024-06-14 10:03:07 +02:00
1 parent 6377c401db
commit 5726ee2737
1 file changed
+1 -1
+1 -1
View File
@@ -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