mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-10 12:45:24 +00:00
Error when using views/issues/index.api.rsb in a plugin (#13924).
git-svn-id: http://svn.redmine.org/redmine/trunk@14375 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
b3aaabcb3c
commit
5b1fb525b8
@ -43,7 +43,7 @@ module ActionView
|
||||
class Resolver
|
||||
def find_all(name, prefix=nil, partial=false, details={}, key=nil, locals=[])
|
||||
cached(key, [name, prefix, partial], details, locals) do
|
||||
if details[:formats] & [:xml, :json]
|
||||
if (details[:formats] & [:xml, :json]).any?
|
||||
details = details.dup
|
||||
details[:formats] = details[:formats].dup + [:api]
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user