Merge branch 'master' into 'master'
Update archives_controller.rb fix error for sort at index See merge request !7
This commit is contained in:
commit
9463108023
|
@ -25,7 +25,7 @@ class ArchivesController < ApplicationController
|
|||
}
|
||||
end
|
||||
files = []
|
||||
archive.archive_file_multiples.each do |file|
|
||||
archive.archive_file_multiples.order_by(:sort_number=>'desc').each do |file|
|
||||
if file.choose_lang.include?(I18n.locale.to_s)
|
||||
title = (file.file_title.blank? ? File.basename(file.file.path) : file.file_title) rescue ""
|
||||
extension = file.file.file.extension.downcase rescue ""
|
||||
|
|
Loading…
Reference in New Issue