Skip to content

Commit

Permalink
Segmentation num orders (#117)
Browse files Browse the repository at this point in the history
* Fix order count when setting max for 0

* readme update

Co-authored-by: Pawel Wasiluk <[email protected]>
  • Loading branch information
Pavlico and Pawel Wasiluk authored Feb 10, 2022
1 parent 7792952 commit a9ac02d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,14 @@ Happy emailing!


## Changelog
= 3.4.22 =
* Fixed segmentation view for order max = 0

= 3.4.21 =
* Added updated logos
* Added sync button
* Fixed errors with paths
* Fixed other minor things

= 3.4.20 =
* Fixes in German translation
Expand Down
2 changes: 1 addition & 1 deletion classes/Segmentation.php
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ public function getQuery($post, $live, $limit = false, $having_id_customer = fal
if ($minValue1 >= 0) {
$having .= ' count(o.id_customer) ' . $min_operator . $minValue1;
}
if ($maxValue2 > 0) {
if ($maxValue2 >= 0) {
if ($having != '') {
$having .= $and;
}
Expand Down

0 comments on commit a9ac02d

Please sign in to comment.