diff --git a/app/helpers/custom_field_properties_helper.rb b/app/helpers/custom_field_properties_helper.rb index 0cedb37a55..803f5a83bc 100644 --- a/app/helpers/custom_field_properties_helper.rb +++ b/app/helpers/custom_field_properties_helper.rb @@ -58,6 +58,8 @@ def remove_field_prop_unicode(field_props) end def remove_local_field_prop_unicode(field_props) + return field_props if field_props["local_label"].nil? + field = field_props["local_label"].gsub(/\>\;|\<\;|\&\;|\"/, '<' => '<', '>' => '>', '&' => '&', '"' => '%22') end