Commit f125a6f1 authored by Hussain Kashef's avatar Hussain Kashef

fixed accepted at to escape nil

parent 057595e6
Pipeline #51389 passed with stage
in 43 minutes and 14 seconds
......@@ -52,5 +52,5 @@ tr id=(dom_id(volunteer))
= td_truncate_content_modal(volunteer.comments, 'Bemerkungen')
td = volunteer.external? ? t_attr(:external, Volunteer) : t_attr(:internal, Volunteer)
td = l(volunteer.created_at.to_date)
td = l(volunteer.accepted_at.to_date)
td = l(volunteer.accepted_at.to_date) if volunteer.accepted_at
td = l(volunteer.resigned_at.to_date) if volunteer.resigned_at
\ No newline at end of file
......@@ -46,7 +46,7 @@ wb.add_worksheet(name: 'Freiwillige') do |sheet|
@volunteers.each do |volunteer|
contact = volunteer.contact
resigned_at = volunteer.resigned_at.to_date if volunteer.resigned_at
accepted_at = volunteer.accepted_at.to_date if volunteer.accepted_at
sheet.add_row [
volunteer.id,
t("salutation.#{volunteer.salutation}"),
......@@ -69,7 +69,7 @@ wb.add_worksheet(name: 'Freiwillige') do |sheet|
volunteer.group_assignments.count,
volunteer.waive,
volunteer.intro_course,
volunteer.accepted_at.to_date,
accepted_at,
resigned_at
], types: cell_types, style: cell_styles
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment