From 250dc2cf48d4aaf7711c59e2d44c92719da20687 Mon Sep 17 00:00:00 2001 From: kirykr Date: Wed, 5 Oct 2022 12:25:33 +0700 Subject: [PATCH] Fixed NoMethod error. in app/helpers/custom_field_properties_helper.rb --- app/helpers/custom_field_properties_helper.rb | 2 ++ 1 file changed, 2 insertions(+) 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