We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7842ff8 + ec06083 commit 5357095Copy full SHA for 5357095
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