Skip to content

Commit

Permalink
Missing END statement
Browse files Browse the repository at this point in the history
  • Loading branch information
nfourtythree committed Jun 11, 2024
1 parent 6eb7561 commit 9bb21db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -773,8 +773,8 @@ function(DefineBehaviorsEvent $event) {
$sender = $event->sender;
if (Craft::$app->getDb()->getIsPgsql()) {
$sender->query->addSelect([
'isPrimaryBilling' => new Expression('CASE WHEN [[commerce_customers.primaryBillingAddressId]] = [[addresses.id]] THEN true ELSE false'),
'isPrimaryShipping' => new Expression('CASE WHEN [[commerce_customers.primaryShippingAddressId]] = [[addresses.id]] THEN true ELSE false'),
'isPrimaryBilling' => new Expression('CASE WHEN [[commerce_customers.primaryBillingAddressId]] = [[addresses.id]] THEN true ELSE false END'),
'isPrimaryShipping' => new Expression('CASE WHEN [[commerce_customers.primaryShippingAddressId]] = [[addresses.id]] THEN true ELSE false END'),
]);
} else {
$sender->query->addSelect([
Expand Down

0 comments on commit 9bb21db

Please sign in to comment.