Commit 55fbe71ad11640347be8128d3c26a33b934e30a8

Authored by Daniel Cestari
Committed by Dmitriy Zaporozhets
1 parent a599d812

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)
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/models/merge_request.rb
... ... @@ -133,7 +133,7 @@ class MergeRequest < ActiveRecord::Base
133 133 end
134 134  
135 135 def reload_code
136   - if merge_request_diff && opened?
  136 + if merge_request_diff && open?
137 137 merge_request_diff.reload_content
138 138 end
139 139 end
... ...