fix for params in controller for ordering pages

Andy Gordon committed Sep 05, 2011
commit 54899c8b19543d4606e60add50e35ccc0b034acb
Showing 1 changed file with 1 additions and 1 deletions
app/controllers/cms_admin/pages_controller.rb +1 -1
@@ @@ -62,7 +62,7 @@ class CmsAdmin::PagesController < CmsAdmin::BaseController
end
def reorder
- (params[:page] || []).each_with_index do |id, index|
+ (params[:cms_page] || []).each_with_index do |id, index|
if (cms_page = Cms::Page.find_by_id(id))
cms_page.update_attribute(:position, index)
end