Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Critical
-
Resolution: Fixed/Completed
-
Affects Version/s: 1.1
-
Fix Version/s: 1.1
-
Component/s: None
-
Labels:None
Description
These two variables:
var html_type_name = html_type.options[html_type.selectedIndex].text;
var data_type_name = data_type.options[data_type.selectedIndex].text;
extract English labels and compare extracted value to explicit string, for example:
if (data_type_name == "Alphanumeric")
When running any translated version of CiviCRM, this condition does not work. The solution would be to assign some kind of id to HTML elements and use them to compare instead.