Skip to content

Commit

Permalink
fix filter issue in customers report
Browse files Browse the repository at this point in the history
  • Loading branch information
damanic committed Nov 27, 2020
1 parent a6bc4d5 commit 9c43b18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/shop_customers_report.php
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ protected function renderReportTotals() {
$intervalLimit = $customer_ids ? $customer_id_filter : $intervalLimit;
$query = "SELECT COUNT(DISTINCT(shop_customers.id)) AS customers_count
FROM shop_customers
WHERE $intervalLimit $filterStr";
WHERE $intervalLimit";

$result = Db_DbHelper::object( $query, array($customer_ids) );
$totals_data->customers_count = $result ? $result->customers_count : 0;
Expand Down

0 comments on commit 9c43b18

Please sign in to comment.