From 933628917a2924a7e4b5414a5ce72d7097f60e2f Mon Sep 17 00:00:00 2001 From: edwin-jebaraj Date: Fri, 13 Dec 2024 10:47:27 +0000 Subject: [PATCH] fixed organisation null issue --- .../support/cases/email_evaluators_controller.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/controllers/support/cases/email_evaluators_controller.rb b/app/controllers/support/cases/email_evaluators_controller.rb index 1e9f38802..7190eafc9 100644 --- a/app/controllers/support/cases/email_evaluators_controller.rb +++ b/app/controllers/support/cases/email_evaluators_controller.rb @@ -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