From f2faa1973c8e3ccddde4221d716bc6df54c3f521 Mon Sep 17 00:00:00 2001 From: Ivan Date: Tue, 14 Nov 2023 10:12:23 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20=D0=BF=D1=80=D0=BE=D0=BF=D1=83=D1=89=D0=B5=D0=BD=D0=BD?= =?UTF-8?q?=D1=8B=D0=B9=20rank=20=D1=80=D0=B0=D0=B2=D0=BD=D1=8B=D0=B9=20?= =?UTF-8?q?=D0=BD=D1=83=D0=BB=D1=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../minishop2/elements/snippets/snippet.ms_get_order.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/components/minishop2/elements/snippets/snippet.ms_get_order.php b/core/components/minishop2/elements/snippets/snippet.ms_get_order.php index b45745161..73d325aa8 100644 --- a/core/components/minishop2/elements/snippets/snippet.ms_get_order.php +++ b/core/components/minishop2/elements/snippets/snippet.ms_get_order.php @@ -85,7 +85,7 @@ foreach ($thumbs as $thumb) { $leftJoin[$thumb] = [ 'class' => 'msProductFile', - 'on' => "`{$thumb}`.product_id = msProduct.id AND `{$thumb}`.parent != 0 AND `{$thumb}`.path LIKE '%/{$thumb}/%'", + 'on' => "`{$thumb}`.product_id = msProduct.id AND `{$thumb}`.parent != 0 AND `{$thumb}`.path LIKE '%/{$thumb}/%' AND `{$thumb}`.`rank` = 0", ]; $select[$thumb] = "`{$thumb}`.url as '{$thumb}'"; }