Downloaded files count limit exceeded error is not displayed
This commit is contained in:
parent
5854a11330
commit
fd015ae08b
@ -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
|
||||
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user