Fix for user order
This commit is contained in:
parent
fd77230247
commit
a6b47d9e72
|
@ -261,7 +261,7 @@ class Admin::UsersNewInterfaceController < OrbitMemberController
|
||||||
if to_go > 0
|
if to_go > 0
|
||||||
user_at_position = User.where(position: to_go - 1).first
|
user_at_position = User.where(position: to_go - 1).first
|
||||||
user = User.find(pair[1])
|
user = User.find(pair[1])
|
||||||
if user_at_position && !user_at_position == user
|
if user_at_position && !(user_at_position == user)
|
||||||
if user.position > user_at_position.position
|
if user.position > user_at_position.position
|
||||||
user.move_above(user_at_position)
|
user.move_above(user_at_position)
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue