We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6cc427f commit ec06083Copy full SHA for ec06083
app/controllers/repository_protected_branches_controller.rb
@@ -52,7 +52,7 @@ def clone
52
53
def sort
54
params[:repository_protected_branche].each_with_index do |id, index|
55
- @repository.protected_branches.update_all({position: index + 1}, {id: id})
+ @repository.protected_branches.where(:id => id).update_all({:position => index + 1})
56
end
57
# Update Gitolite repository
58
call_use_case
0 commit comments