diff --git a/app/helpers/welcome_helper.rb b/app/helpers/welcome_helper.rb index 83e036f6f..83d6c4e17 100644 --- a/app/helpers/welcome_helper.rb +++ b/app/helpers/welcome_helper.rb @@ -104,9 +104,10 @@ module WelcomeHelper # or searchStudent(project).count end - #To do - def find_new_forum_topics - + def find_new_forum_topics limit=9 + activity = Redmine::Activity::Fetcher.new(nil) + activity.scope=['memos'] + activity.events_welcome(nil, nil, {:limit => limit}) end private