Commit 37715fb3 authored by Batyr Mackenov's avatar Batyr Mackenov

Bugfix: invalid counting rows in products getter

parent a9760405
......@@ -113,7 +113,7 @@ class iaProduct extends abstractModuleFront
$order = iaDb::printf('p.`:field` :direction', $order);
}
$sql = 'SELECT '
$sql = 'SELECT :calc_rows '
. 'p.*, '
. 'c.`title_:lang` `category`, c.`slug` `category_slug` '
. 'FROM `:table_products` p '
......@@ -124,6 +124,7 @@ class iaProduct extends abstractModuleFront
$sql = iaDb::printf($sql, [
'lang' => $this->iaCore->language['iso'],
'calc_rows' => iaDb::STMT_CALC_FOUND_ROWS,
'table_products' => self::getTable(true),
'table_categories' => iaCategory::getTable(true),
'where' => $where,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment