]> cat aescling's git repositories - mastodon.git/commitdiff
Fix hashtag batch actions not redirecting back with right filters (#11962)
authorEugen Rochko <eugen@zeonfederated.com>
Fri, 27 Sep 2019 00:13:51 +0000 (02:13 +0200)
committerGitHub <noreply@github.com>
Fri, 27 Sep 2019 00:13:51 +0000 (02:13 +0200)
Regression from #11829

app/views/admin/tags/index.html.haml

index 498b930835833352e406a1fa244771d739718295..8b1182dbb11f70954bc5ce03f07b6dd3bff5966e 100644 (file)
 
 = form_for(@form, url: batch_admin_tags_path) do |f|
   = hidden_field_tag :page, params[:page] || 1
-  = hidden_field_tag :context, params[:context]
-  = hidden_field_tag :review, params[:review]
+  = hidden_field_tag :name, params[:name] if params[:name].present?
+
+  - Admin::FilterHelper::TAGS_FILTERS.each do |key|
+    = hidden_field_tag key, params[key] if params[key].present?
 
   .batch-table
     .batch-table__toolbar