Skip to content

Commit

Permalink
Fixes parsing multiple subscription signup #8166 (#8176)
Browse files Browse the repository at this point in the history
* Fixes parsing multiple subscription signup #8166

* Update subscription_controller.rb

* Update subscription_controller.rb
  • Loading branch information
jywarren authored Jul 21, 2020
1 parent 122e8a7 commit 0a4b058
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/subscription_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ def multiple_add
if request.xhr?
render json: true
else
flash[:notice] = "You are now following #{params[:tagnames].join(', ')}."
tagnames = params[:tagnames].class == Array ? params[:tagnames].join(', ') : params[:tagnames]
flash[:notice] = "You are now following #{tagnames}."
redirect_to return_to
end
end
Expand Down

0 comments on commit 0a4b058

Please sign in to comment.