Browse Source

Don't block log creation

pull/2629/head
Manny Dinssa 2 years ago
parent
commit
8b9c9c71a8
  1. 1
      app/services/bulk_upload/lettings/year2024/row_parser.rb
  2. 1
      app/services/bulk_upload/sales/year2024/row_parser.rb

1
app/services/bulk_upload/lettings/year2024/row_parser.rb

@ -583,7 +583,6 @@ private
def validate_assigned_to_when_support def validate_assigned_to_when_support
if field_3.blank? && bulk_upload.user.support? if field_3.blank? && bulk_upload.user.support?
block_log_creation!
errors.add(:field_3, :setup, message: I18n.t("validations.not_answered", question: "what is the CORE username of the account this letting log should be assigned to?")) errors.add(:field_3, :setup, message: I18n.t("validations.not_answered", question: "what is the CORE username of the account this letting log should be assigned to?"))
end end
end end

1
app/services/bulk_upload/sales/year2024/row_parser.rb

@ -1323,7 +1323,6 @@ private
def validate_assigned_to_when_support def validate_assigned_to_when_support
if field_3.blank? && bulk_upload.user.support? if field_3.blank? && bulk_upload.user.support?
block_log_creation!
errors.add(:field_3, :setup, message: I18n.t("validations.not_answered", question: "what is the CORE username of the account this sales log should be assigned to?")) errors.add(:field_3, :setup, message: I18n.t("validations.not_answered", question: "what is the CORE username of the account this sales log should be assigned to?"))
end end
end end

Loading…
Cancel
Save