mirror of
https://github.com/redmine/redmine.git
synced 2025-11-15 09:46:02 +01:00
Download all attachments in a journal (#35462).
Patch by Takenori TAKAKI. git-svn-id: http://svn.redmine.org/redmine/trunk@21292 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -225,7 +225,7 @@ class AttachmentsController < ApplicationController
|
||||
rescue
|
||||
nil
|
||||
end
|
||||
unless klass && klass.reflect_on_association(:attachments)
|
||||
unless klass && (klass.reflect_on_association(:attachments) || klass.method_defined?(:attachments))
|
||||
render_404
|
||||
return
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user