Skip to content

Commit

Permalink
Добавлен пропущенный rank равный нулю
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-lutsenko committed Nov 14, 2023
1 parent 687e2da commit f2faa19
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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}'";
}
Expand Down

0 comments on commit f2faa19

Please sign in to comment.