Skip to content

Commit

Permalink
Fixed NoMethod error. in app/helpers/custom_field_properties_helper.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
kirykr committed Oct 5, 2022
1 parent 4fa056f commit 250dc2c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/helpers/custom_field_properties_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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(/\&gt\;|\&lt\;|\&amp\;|\"/, '&lt;' => '<', '&gt;' => '>', '&amp;' => '&', '"' => '%22')
end

Expand Down

0 comments on commit 250dc2c

Please sign in to comment.