Fix prepend_title_page method in pdf_job [SCI-9623]

This commit is contained in:
Ivan Kljun 2023-12-07 10:23:56 +01:00
parent 152522341c
commit 1d5e072f0b

View file

@ -220,9 +220,9 @@ module Reports
merged_file
end
def prepend_title_page(file, template, report, renderer)
unless File.exist?(Rails.root.join('app', 'views', 'reports', 'templates', template, 'cover.html.erb'))
return file
def prepend_title_page
unless File.exist?(Rails.root.join('app', 'views', 'reports', 'templates', @template, 'cover.html.erb'))
return @file
end
total_pages = 0