small fix for empty company
This commit is contained in:
parent
6e77ef684d
commit
795fe4b760
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue