Skip to content

Commit

Permalink
Fix error with prefixed databases
Browse files Browse the repository at this point in the history
  • Loading branch information
Tam committed Oct 24, 2019
1 parent 114e68f commit 154744c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.1.2 - 2019-10-24
### Fixed
- Fix error with prefixed databases (via [@jmauzyk](https://github.com/jmauzyk))

## 1.1.1 - 2019-07-10
### Fixed
- Fixed database error when creating new products
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ether/purchase-patterns",
"description": "Easily keep track of and show products customers bought together. Plus, sorting by individual and order sales.",
"version": "1.1.1",
"version": "1.1.2",
"type": "craft-plugin",
"license": "proprietary",
"minimum-stability": "dev",
Expand Down
2 changes: 1 addition & 1 deletion src/elements/db/ProductQueryExtended.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class ProductQueryExtended extends ProductQuery
protected function beforePrepare (): bool
{
$this->innerJoin(
'{{%purchase_counts}}',
'{{%purchase_counts}} purchase_counts',
'[[commerce_products.id]] = [[purchase_counts.product_id]]'
);

Expand Down

0 comments on commit 154744c

Please sign in to comment.