-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Remove deprecated variable _PS_PRICE_COMPUTE_PRECISION_ #27630
Conversation
Deprecated `_PS_PRICE_COMPUTE_PRECISION_` instead of `Context::getContext()->getComputingPrecision()` was used. This cause an error when value from the 2 variables didn't match.
Hi, thanks for this contribution! I found some issues with the Pull Request description:
Would you mind having a look at it? This will help us understand how interesting your contribution is, thank you very much! About linked issuesPlease consider opening an issue before submitting a Pull Request:
(Note: this is an automated message, but answering it will reach a real human) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi and thanks for your contribution.
Could you please remove the define in config.inc.php as the constant has been tagged as deprecated in 1.7.7.
If you feel comfortable, you can also do it for _PS_PRICE_DISPLAY_PRECISION_
which was also deprecated in the same version
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But this could be a BC break if modules or custom developments use this variable. |
How to reproduce it and test it?
|
@idnovate Could you create a dedicated issue for validating it by the @PrestaShop/qa-functional team ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the createOrderCartRules
you have this variable already available.
In the first method, you could create if it's in a few places.
Friendly reminder @idnovate 😉 also this PR requires a git rebase |
@idnovate Could you rebase your PR and remove your merge commits, please ? |
Is it OK now? 😕 |
@idnovate No you have always merge commits. Check here : https://github.com/PrestaShop/PrestaShop/pull/27630/commits. |
Deprecated
_PS_PRICE_COMPUTE_PRECISION_
instead ofContext::getContext()->getComputingPrecision()
was used. This cause an error when value from the 2 variables didn't match._PS_PRICE_COMPUTE_PRECISION_
andContext::getContext()->getComputingPrecision()
was different, the order was created as Payment ErrorThis change is![Reviewable](https://camo.githubusercontent.com/23b05f5fb48215c989e92cc44cf6512512d083132bd3daf689867c8d9d386888/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)