aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Arndt <git@p.arndt.io>2016-06-02 09:08:17 +1200
committerPhilip Arndt <git@p.arndt.io>2016-06-02 09:08:17 +1200
commit23cc7c07b4248dd7e9ca161e4e673a7071636c80 (patch)
treeda3281b50fd09a00d91b43accf4830616d046cb4
parent193317eaf6e01a26bdf97125f98fba95c9269275 (diff)
parentcb3c709ffac3db8281339b2c3db66bb847ee1c74 (diff)
downloadrefinerycms-blog-23cc7c07b4248dd7e9ca161e4e673a7071636c80.tar.gz
refinerycms-blog-23cc7c07b4248dd7e9ca161e4e673a7071636c80.tar.bz2
refinerycms-blog-23cc7c07b4248dd7e9ca161e4e673a7071636c80.zip
Merge pull request #448 from refinery/fix-447
Fix the ability to remove all categories from a blog post
-rw-r--r--app/controllers/refinery/blog/admin/posts_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/refinery/blog/admin/posts_controller.rb b/app/controllers/refinery/blog/admin/posts_controller.rb
index aeb3c43..6bc8797 100644
--- a/app/controllers/refinery/blog/admin/posts_controller.rb
+++ b/app/controllers/refinery/blog/admin/posts_controller.rb
@@ -107,7 +107,7 @@ module Refinery
end
def check_category_ids
- post_params[:category_ids] ||= []
+ params[:post][:category_ids] ||= []
end
end
end