Skip to content

Commit e1a1c7b

Browse files
authored
ENGCOM-3292 catalog:images:resize total images count calculates incorrectly #18387: #18807
1 parent 466daaa commit e1a1c7b

File tree

1 file changed

+6
-0
lines changed
  • app/code/Magento/Catalog/Model/ResourceModel/Product

1 file changed

+6
-0
lines changed

app/code/Magento/Catalog/Model/ResourceModel/Product/Image.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
use Magento\Framework\DB\Select;
1313
use Magento\Framework\App\ResourceConnection;
1414

15+
/*
16+
* Class for retrieval of all product images
17+
*/
1518
class Image
1619
{
1720
/**
@@ -73,6 +76,7 @@ public function getAllProductImages(): \Generator
7376

7477
/**
7578
* Get the number of unique pictures of products
79+
*
7680
* @return int
7781
*/
7882
public function getCountAllProductImages(): int
@@ -88,6 +92,8 @@ public function getCountAllProductImages(): int
8892
}
8993

9094
/**
95+
* Return Select to fetch all products images
96+
*
9197
* @return Select
9298
*/
9399
private function getVisibleImagesSelect(): Select

0 commit comments

Comments
 (0)