You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the user account is setup with language "Deutsch (Schweiz)" and you try to save a number field with a number like "900,00" you get an exception "'900,00' is not a numeric value."
Steps to reproduce
Create a new section with a number field.
Change the language of your backend user to "Deutsch (Schweiz)"
Try to save a new entry with 900,00 as value in the number field
You can see here already, that the draft auto save also already failed.
You get an exception "Invalid Argument – yii\base\InvalidArgumentException" and "'900,00' is not a numeric value."
Expected behavior
Either the error is displayed as a regular error with form/field validation or it's just saved without any issues. But a system breaking exception is not the desired outcome.
Actual behavior
The site breaks on save and a stack trace with error message is shown.
Craft CMS version
3.7.41
PHP version
8.1
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
The text was updated successfully, but these errors were encountered:
What happened?
Description
When the user account is setup with language "Deutsch (Schweiz)" and you try to save a number field with a number like "900,00" you get an exception "'900,00' is not a numeric value."
Steps to reproduce
Create a new section with a number field.
![image](https://user-images.githubusercontent.com/69143768/167438437-949f58aa-4dff-4d80-85f8-c390604165da.png)
Change the language of your backend user to "Deutsch (Schweiz)"
![image](https://user-images.githubusercontent.com/69143768/167438576-64a309c7-5306-4720-b390-2179d6992911.png)
Try to save a new entry with 900,00 as value in the number field
![image](https://user-images.githubusercontent.com/69143768/167439025-fd435748-5afb-489e-b9e9-8b80d6e66daa.png)
You can see here already, that the draft auto save also already failed.
You get an exception "Invalid Argument – yii\base\InvalidArgumentException" and "'900,00' is not a numeric value."
![image](https://user-images.githubusercontent.com/69143768/167438750-23693207-9d96-470d-ac8d-7f3fbd826213.png)
Expected behavior
Either the error is displayed as a regular error with form/field validation or it's just saved without any issues. But a system breaking exception is not the desired outcome.
Actual behavior
The site breaks on save and a stack trace with error message is shown.
Craft CMS version
3.7.41
PHP version
8.1
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
The text was updated successfully, but these errors were encountered: