Skip to content

Commit

Permalink
Corrigir lógica de remoção de campos no arquivo lead.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
gildemberg-santos committed Apr 16, 2024
1 parent 212fe7e commit 53733eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/salesforce/lead.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def field!
not_remove_fields = !%w[Name].include?(field["name"])
remove_fields = %w[FirstName LastName].include?(field["name"])
createable = field["createable"] == false
remove_type = %w[boolean reference].include?(field["type"])
remove_type = %w[reference].include?(field["type"])
@fields.merge!({ field["name"] => { "type" => field["type"], "title" => field["label"] } })

next if (not_remove_fields && createable) || (not_remove_fields && remove_type) || remove_fields
Expand Down

0 comments on commit 53733eb

Please sign in to comment.