Makes activity view accept a user_id param to show user's activity (#1002).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2067 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
1 parent
fce4615f10
commit
6e777b7453
35 files changed
+76
-7
No files matched your search
@@ -48,8 +48,16 @@ module Redmine
|
||||
end
|
||||
|
||||
# Sets the scope
|
||||
# Argument can be :all, :default or an array of event types
|
||||
def scope=(s)
|
||||
@scope = s & event_types
|
||||
case s
|
||||
when :all
|
||||
@scope = event_types
|
||||
when :default
|
||||
default_scope!
|
||||
else
|
||||
@scope = s & event_types
|
||||
end
|
||||
end
|
||||
|
||||
# Resets the scope to the default scope
|
||||
|
||||
Reference in new issue
Block a user