Skip to content
Snippets Groups Projects
Commit 4b7ea181 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

Fix #1020

parent d6a352b5
No related branches found
No related tags found
No related merge requests found
......@@ -7,8 +7,9 @@ class Admin::Communication::BlocksController < Admin::Communication::Application
ids = params[:ids] || []
ids.each.with_index do |id, index|
@block = current_university.communication_blocks.find(id)
@block.update position: index + 1
@block.update_column(:position, index + 1)
end
@block.about.touch
end
def new
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment