Downloaded files count limit exceeded error is not displayed

This commit is contained in:
karel.picman@lbcfree.net 2020-05-22 14:31:58 +02:00
parent 5854a11330
commit fd015ae08b
2 changed files with 3 additions and 1 deletions

View File

@ -164,6 +164,7 @@ class DmsfController < ApplicationController
rescue StandardError => e
flash[:error] = e.message
Rails.logger.error e.message
return redirect_back(fallback_location: dmsf_folder_path(id: @project, folder_id: @folder))
end
end

View File

@ -295,7 +295,8 @@ class DmsfFolder < ActiveRecord::Base
end
def custom_values
# We need to response with DmsfFileRevision custom values if DmsfFolder just cover files in the union of the main view
# We need to response with DmsfFileRevision custom values if DmsfFolder just covers files in the union of the main
# view
if self.respond_to?(:type)
if /^file/.match?(type)
return CustomValue.where(customized_type: 'DmsfFileRevision', customized_id: revision_id)