cancel
Showing results for 
Search instead for 
Did you mean: 

product price input has extra character results in validation error for input number

product price input has extra character results in validation error for input number

Hello,

after changing the locale to fa_IR which means farsi_IRAN and in other words persian langauge

there has been a bug on the backend product page

when creating a product it is fine but after modifying a product there if we don't touch the price input box it will return an error that the 

 

 
Spoiler
Please enter a number 0 or greater in this field.
 however there is a number in there
after digging a lot I found out that there is an extra character added before the number which is 8206 and which means a left to right character identifier 
Symbol Name:Html Entity:Hex CodeSmiley Very Happyecimal Code:Unicode Group:
Left-To-Right Mark
‎
‎
‎

General Punctuation

 

Which the price input box does not need it

a work arround for this is to override the validation method to check if it has a rtl identifier and trim it but I wanted to know how to prevent this character to be added to the price field

2018-03-12_11-04-55.jpg