Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP Fatal error: 1064:You have an error in your SQL syntax #1

Closed
nikhilchaudhary70 opened this issue Apr 27, 2021 · 1 comment
Closed
Labels
bug Something isn't working fix provided A correction has been provided
Milestone

Comments

@nikhilchaudhary70
Copy link

nikhilchaudhary70 commented Apr 27, 2021

There is a small error when we have two tax defined comma separated in the Customer Tax Exempt field.

We need to change the below line of code
from:
$this->exemptions_list = "'" . implode(", '", $exemptions) . "'";
to:
$this->exemptions_list = "'" . implode("', '", $exemptions) . "'";

There is a single quote missing in implode function.

@lat9 lat9 added the bug Something isn't working label Apr 27, 2021
@lat9
Copy link
Owner

lat9 commented Apr 27, 2021

Nice one; thanks for the fix. I'll get that going over the weekend.

@lat9 lat9 added this to the v2.0.1 milestone Apr 29, 2021
@lat9 lat9 added the fix provided A correction has been provided label Apr 29, 2021
@lat9 lat9 closed this as completed Apr 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fix provided A correction has been provided
Projects
None yet
Development

No branches or pull requests

2 participants