Skip to content

Commit ec06083

Browse files
committed
Fix protected branch reordering 500 with Argument Error
1 parent 6cc427f commit ec06083

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: app/controllers/repository_protected_branches_controller.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def clone
5252

5353
def sort
5454
params[:repository_protected_branche].each_with_index do |id, index|
55-
@repository.protected_branches.update_all({position: index + 1}, {id: id})
55+
@repository.protected_branches.where(:id => id).update_all({:position => index + 1})
5656
end
5757
# Update Gitolite repository
5858
call_use_case

0 commit comments

Comments
 (0)