Commit 3433fa75f73da66952def002b53b7476fb233a57
Exists in
master
and in
7 other branches
Merge branch 'master' of https://gitlab.com/noosfero-plugins/proposals_discussion
Showing
1 changed file
with
6 additions
and
5 deletions
Show diff stats
controllers/myprofile/proposals_discussion_plugin_tasks_controller.rb
@@ -48,11 +48,12 @@ class ProposalsDiscussionPluginTasksController < TasksController | @@ -48,11 +48,12 @@ class ProposalsDiscussionPluginTasksController < TasksController | ||
48 | 48 | ||
49 | def save_categories | 49 | def save_categories |
50 | 50 | ||
51 | - if request.post? && params[:tag_list].presence | ||
52 | - result = { | ||
53 | - success: false, | ||
54 | - message: _('Error to save categories. Please, contact the system admin') | ||
55 | - } | 51 | + result = { |
52 | + success: false, | ||
53 | + message: _('Error to save categories. Please, contact the system admin') | ||
54 | + } | ||
55 | + | ||
56 | + if request.post? && params[:tag_list] | ||
56 | 57 | ||
57 | categories_list = params[:tag_list].split(',') | 58 | categories_list = params[:tag_list].split(',') |
58 | task = Task.to(profile).find_by_id params[:task_id] | 59 | task = Task.to(profile).find_by_id params[:task_id] |