Commit 6b143566a538068c98bae68cf7608e6d33e918c9

Authored by Ábner Silva de Oliveira
1 parent a676d34c

fixed to filter only for proposaltask

controllers/myprofile/proposals_discussion_plugin_tasks_controller.rb
... ... @@ -21,7 +21,7 @@ class ProposalsDiscussionPluginTasksController < TasksController
21 21  
22 22 # filter for evaluator profile
23 23 if @view_only
24   - @tasks = Task.pending_all(profile, false, false).order_by('created_at', 'asc')
  24 + @tasks = ProposalsDiscussionPlugin::ProposalTask.pending_all(profile, false, false).order_by('created_at', 'asc')
25 25 @tasks = @tasks.where(:responsible_id => current_person.id)
26 26 else
27 27 # filter for moderator
... ...