Skip to content

Commit

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

* Fixes parsing multiple subscription signup publiclab#8166

* Update subscription_controller.rb

* Update subscription_controller.rb
  • Loading branch information
jywarren authored and reginaalyssa committed Oct 16, 2021
1 parent 35c69a5 commit e73b1e7
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 e73b1e7

Please sign in to comment.