dev_course
cxt 5 years ago
parent 8df9380c6a
commit e07d595aab

@ -10,7 +10,7 @@ class ExportShixunReportService
end
def filename
@_filename ||= "#{homework.name}-#{work.user.user_extension&.student_id}-#{work.user.real_name}.pdf".gsub(' ', '-').gsub('/', '_')
@_filename ||= "#{homework.name}-#{work.user&.student_id}-#{work.user.real_name}.pdf".gsub(' ', '-').gsub('/', '_')
end
def prepare_binding

Loading…
Cancel
Save