Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Kumar Mohan <arunmohandm@gmail.com>2019-06-27 08:56:08 +0300
committerArun Kumar Mohan <arunmohandm@gmail.com>2019-08-28 04:09:24 +0300
commit4ca32c2b55519aa2b7852c879ad700e8fa290f80 (patch)
treef1c44ff088bebbdf9e1ad355b11cf00aca45517e /app/models/todo.rb
parent8308469fdd031a1f7baa6e95966dfc467eb5df51 (diff)
Add Issue and Merge Request titles to Todo items
Only displays the todo body if the todo has a note. This is to avoid redundant Issue or Merge Request titles displayed both in the Todo title and body.
Diffstat (limited to 'app/models/todo.rb')
-rw-r--r--app/models/todo.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/todo.rb b/app/models/todo.rb
index 240c91da5b6..1ec04189482 100644
--- a/app/models/todo.rb
+++ b/app/models/todo.rb
@@ -186,9 +186,9 @@ class Todo < ApplicationRecord
def target_reference
if for_commit?
- target.reference_link_text(full: true)
+ target.reference_link_text
else
- target.to_reference(full: true)
+ target.to_reference
end
end