Commit f699c4f53a2f7a157f2ef8d94e64da504c7ab082

Authored by Victor Costa
1 parent 83e49757
Exists in master

Fix report job

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/dialoga_plugin/report_job.rb
... ... @@ -39,7 +39,7 @@ class DialogaPlugin::ReportJob < Struct.new(:profile_id)
39 39 info.push(task.proposal_source)
40 40 info.push(status_translation[task.status])
41 41 info.push(task.created_at.strftime("%d/%m/%y %H:%M"))
42   - info.push(task.proposal_evaluation.present? ? task.proposal_evaluation.evaluated_by.name : '')
  42 + info.push(task.proposal_evaluation.present? && task.proposal_evaluation.evaluated_by.present? ? task.proposal_evaluation.evaluated_by.name : '')
43 43 info.push(task.proposal_evaluation.present? ? task.proposal_evaluation.created_at.strftime("%d/%m/%y %H:%M") : '')
44 44 info.push(task.closed_by.present? ? task.closed_by.name : '')
45 45 info.push(task.closed_by.present? ? task.end_date.strftime("%d/%m/%y %H:%M") : '')
... ...