Skip to content

Commit

Permalink
Fix errors for console or queue requests
Browse files Browse the repository at this point in the history
  • Loading branch information
imagehat committed Nov 8, 2021
1 parent 3381744 commit 9c0a6c7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/services/SalesTaxService.php
Original file line number Diff line number Diff line change
Expand Up @@ -784,6 +784,10 @@ private function getAddressSignature(Address $address)
*/
private function parseOverrideParam($param)
{
if (Craft::$app->getRequest()->getIsConsoleRequest()) {
return false;
}

$value = Craft::$app->getRequest()->getParam($param);

return filter_var($value, FILTER_VALIDATE_BOOLEAN);
Expand Down

0 comments on commit 9c0a6c7

Please sign in to comment.