Fix structure reorder position
This commit is contained in:
1 parent
ba8da9b6bb
commit
43cf6b70b7
2 files changed
+4
-3
No files matched your search
@@ -27,7 +27,7 @@ class Admin::ItemsController < OrbitBackendController
|
||||
|
||||
def update_position
|
||||
item = Item.find(params[:id])
|
||||
item.shift_to(params[:parent_id], params[:position])
|
||||
item.shift_to(params[:parent_id], params[:position].to_i - 1)
|
||||
render :nothing => true
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user