nautilus-like folders-files list view #252

This commit is contained in:
Karel Picman 2016-04-25 12:48:42 +02:00
parent 52f245e913
commit c1918b6f77

View File

@ -316,7 +316,7 @@ class DmsfFile < ActiveRecord::Base
results = []
scope = self.visible.joins(:project, :revisions)
scope = self.visible.joins(:project, :dmsf_file_revisions)
scope = scope.limit(options[:limit]) unless options[:limit].blank?
scope = scope.where(limit_options) unless limit_options.blank?
scope = scope.where(project_conditions.join(' AND '))
@ -330,7 +330,7 @@ class DmsfFile < ActiveRecord::Base
Setting.plugin_redmine_dmsf['dmsf_index_database'].strip, lang)
database = Xapian::Database.new(databasepath)
rescue Exception => e
Rails.logger.warn 'REDMAIN_XAPIAN ERROR: Xapian database is not properly set or initiated or is corrupted.'
Rails.logger.warn "REDMAIN_XAPIAN ERROR: Xapian database is not properly set, initiated or it's corrupted."
Rails.logger.warn e.message
end