mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-28 02:27:57 +08:00
Fix prepend_title_page method in pdf_job [SCI-9623]
This commit is contained in:
parent
152522341c
commit
1d5e072f0b
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue