small fix for empty company

This commit is contained in:
Harry Bomrah 2018-01-18 15:37:08 +08:00
parent 6e77ef684d
commit 795fe4b760
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ class RecruitmentsController < PseudoSessionController
total_pages = 0
end
candidates.each do |candidate|
company = !candidate.current_company.nil? && candidate.current_company != "" ? candidate.current_company : candidate.get_current_exp.company_name
company = !candidate.current_company.nil? && candidate.current_company != "" ? candidate.current_company : (candidate.get_current_exp.company_name rescue nil)
company = "N/A" if company.nil?
if candidate.experience_years == 0 && candidate.experience_months == 0
wey = t("recruitment.fresher")