fix error
This commit is contained in:
parent
8e53925406
commit
03b5ef810f
|
@ -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|
|
||||
|
|
Loading…
Reference in New Issue