fix error

This commit is contained in:
邱博亞 2024-08-21 21:44:26 +08:00
parent dc371406f3
commit 87085f94b4
1 changed files with 5 additions and 1 deletions

View File

@ -36,7 +36,11 @@
end
fields_name = fields_name - basic_keys
keys = basic_keys + fields_name
keys = keys.select{|field_name| tmp = property[field_name]; (tmp.is_a?(Hash) ? (tmp["enable"] == "1") : true) }
keys = keys.select do |field_name|
return true if field_name.include?('p_hire_fields.')
tmp = property[field_name]
tmp.is_a?(Hash) ? (tmp["enable"] == "1") : true
end
p_hire_fields = property.p_hire_fields_enabled.map{|rf| [rf.id.to_s,rf]}.to_h
has_p_hire_fields = p_hire_fields.count != 0
tmp_keys = []