From 9cc834e05392fa3979c1d5faa6bb242db4716974 Mon Sep 17 00:00:00 2001 From: Michel Felipe de Oliveira Ferreira Date: Tue, 21 Jul 2015 15:19:49 -0300 Subject: [PATCH] Added ordering responsibles candidates by name ascending --- 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 c469584..ee48e53 100644 --- a/controllers/myprofile/proposals_discussion_plugin_tasks_controller.rb +++ b/controllers/myprofile/proposals_discussion_plugin_tasks_controller.rb @@ -43,7 +43,7 @@ class ProposalsDiscussionPluginTasksController < TasksController @failed = params ? params[:failed] : {} - @responsible_candidates = profile.members.by_role(profile.roles.reject {|r| !r.has_permission?('perform_task')}) if profile.organization? + @responsible_candidates = profile.members.by_role(profile.roles.reject {|r| !r.has_permission?('perform_task')}).order('name asc') if profile.organization? end def save_categories -- libgit2 0.21.2