From 6b143566a538068c98bae68cf7608e6d33e918c9 Mon Sep 17 00:00:00 2001 From: Ábner Silva de Oliveira Date: Tue, 30 Jun 2015 18:09:35 -0300 Subject: [PATCH] fixed to filter only for proposaltask --- controllers/myprofile/proposals_discussion_plugin_tasks_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/myprofile/proposals_discussion_plugin_tasks_controller.rb b/controllers/myprofile/proposals_discussion_plugin_tasks_controller.rb index 5020ee8..0bb8d73 100644 --- a/controllers/myprofile/proposals_discussion_plugin_tasks_controller.rb +++ b/controllers/myprofile/proposals_discussion_plugin_tasks_controller.rb @@ -21,7 +21,7 @@ class ProposalsDiscussionPluginTasksController < TasksController # filter for evaluator profile if @view_only - @tasks = Task.pending_all(profile, false, false).order_by('created_at', 'asc') + @tasks = ProposalsDiscussionPlugin::ProposalTask.pending_all(profile, false, false).order_by('created_at', 'asc') @tasks = @tasks.where(:responsible_id => current_person.id) else # filter for moderator -- libgit2 0.21.2