Skip to content

Commit

Permalink
fixed organisation null issue
Browse files Browse the repository at this point in the history
  • Loading branch information
edwin-jebaraj committed Dec 13, 2024
1 parent 550fe41 commit 9336289
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/controllers/support/cases/email_evaluators_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ def category_name
end

def organisation_name
@organisation_name = Support::Organisation.find(current_case.organisation_id).try(:name)
@organisation_name = if current_case.organisation_id.nil?
current_case.email
else
Support::Organisation.find(current_case.organisation_id).try(:name)
end
end

def set_email_addresses
Expand Down

0 comments on commit 9336289

Please sign in to comment.