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

Fix variants issues: decimal separator not always parsed right + fatal on variant list #18313

Closed

Conversation

atm-florianm
Copy link
Contributor

Fix fatal on variant list + decimal sep. parsing

The fatal error occurs on htdocs/variants/list.php because class Product is redeclared (using require_once instead of require fixes it).

The other error occurs when you save a variant with a non-percentage variation (box unchecked) using a decimal separator other than ".": the value is not saved properly. Applying price2num from the moment the HTTP parameter value is assigned to its variable fixes the problem.

@atm-florianm atm-florianm changed the base branch from develop to 14.0 August 2, 2021 16:36
eldy added a commit that referenced this pull request Aug 3, 2021
@eldy
Copy link
Member

eldy commented Aug 3, 2021

I pushed a better fix. Thanks to try it

@eldy eldy closed this Aug 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants