Commit f699c4f53a2f7a157f2ef8d94e64da504c7ab082
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,7 +39,7 @@ class DialogaPlugin::ReportJob < Struct.new(:profile_id) | ||
39 | info.push(task.proposal_source) | 39 | info.push(task.proposal_source) |
40 | info.push(status_translation[task.status]) | 40 | info.push(status_translation[task.status]) |
41 | info.push(task.created_at.strftime("%d/%m/%y %H:%M")) | 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 | info.push(task.proposal_evaluation.present? ? task.proposal_evaluation.created_at.strftime("%d/%m/%y %H:%M") : '') | 43 | info.push(task.proposal_evaluation.present? ? task.proposal_evaluation.created_at.strftime("%d/%m/%y %H:%M") : '') |
44 | info.push(task.closed_by.present? ? task.closed_by.name : '') | 44 | info.push(task.closed_by.present? ? task.closed_by.name : '') |
45 | info.push(task.closed_by.present? ? task.end_date.strftime("%d/%m/%y %H:%M") : '') | 45 | info.push(task.closed_by.present? ? task.end_date.strftime("%d/%m/%y %H:%M") : '') |