summaryrefslogtreecommitdiff
path: root/app/models/issue.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-12-21 15:36:08 +0100
committerDouwe Maan <douwe@gitlab.com>2015-12-21 15:36:08 +0100
commit5ef2048f65da62999732876ea7efa00bc942ba78 (patch)
tree9f3ee67a6ec66871ac95b74310ab0c711b7fcb84 /app/models/issue.rb
parent4b4cbf0ce4925e22a635e4432e7ac8602199fa5b (diff)
downloadgitlab-ce-5ef2048f65da62999732876ea7efa00bc942ba78.tar.gz
Fix issue related cross-project MRsfix-issue-related-mrs
Diffstat (limited to 'app/models/issue.rb')
-rw-r--r--app/models/issue.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb
index 4571d7f0ee1..80ecd15077f 100644
--- a/app/models/issue.rb
+++ b/app/models/issue.rb
@@ -86,7 +86,7 @@ class Issue < ActiveRecord::Base
def referenced_merge_requests
Gitlab::ReferenceExtractor.lazily do
[self, *notes].flat_map do |note|
- note.all_references(load_lazy_references: false).merge_requests
+ note.all_references.merge_requests
end
end.sort_by(&:iid)
end