Skip to content
Snippets Groups Projects
Commit 36a3ea5d authored by Daniel Cestari's avatar Daniel Cestari
Browse files

Fix error with reopened merge request not properly reloading

If you reopen a Merge Request and then try to update the source branch
it won't properly reload the code since the "reload_code" method still
checks if the MR is "opened" and not just "open" (which includes reopened)
parent ad5e5b5c
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -133,7 +133,7 @@ class MergeRequest < ActiveRecord::Base
end
 
def reload_code
if merge_request_diff && opened?
if merge_request_diff && open?
merge_request_diff.reload_content
end
end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment