Skip to content

Commit 5357095

Browse files
author
Nicolas
committed
Merge pull request #408 from wilsoc5/wilsoc5-patch-2
Fix protected branch reordering 500 with Argument Error
2 parents 7842ff8 + ec06083 commit 5357095

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)