fix error

This commit is contained in:
邱博亞 2021-11-23 13:27:11 +08:00
parent 8e53925406
commit 03b5ef810f
1 changed files with 3 additions and 3 deletions

View File

@ -42,13 +42,13 @@ class FaqsController < ApplicationController
return {} if (faq.category.disable rescue false)
locale = I18n.locale.to_s
faqs_files = faq.qa_files.collect do |f|
faqs_files = faq.qa_files.collect do |qa_file|
next if !qa_file.enabled_for?(locale)
file = qa_file.file
next if file.path.nil?
{
"file_url" => file.url + "\" title=\"#{f.file_title}",
"file_title" => f.title
"file_url" => file.url + "\" title=\"#{qa_file.file_title}",
"file_title" => qa_file.title
}
end.compact
faqs_links = faq.qa_links.collect do |f|