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:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-12-01 06:13:34 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-12-01 06:13:34 +0300
commita3e0d4c59ff43ee406d2fee12a29339b95a0787d (patch)
tree22105026897baded7ae5fe2ea5384bdfe6febc69 /app/presenters/issue_presenter.rb
parent08775893a80e4024d9b30bd1a17caff7ecb274f9 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/presenters/issue_presenter.rb')
-rw-r--r--app/presenters/issue_presenter.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/presenters/issue_presenter.rb b/app/presenters/issue_presenter.rb
index 9403dd0814b..f9bc8c1dfa6 100644
--- a/app/presenters/issue_presenter.rb
+++ b/app/presenters/issue_presenter.rb
@@ -12,12 +12,12 @@ class IssuePresenter < Gitlab::View::Presenter::Delegated
issue.subscribed?(current_user, issue.project)
end
- def project_emails_disabled?
- issue.project.emails_disabled?
+ def parent_emails_disabled?
+ issue.resource_parent.emails_disabled?
end
- def project_emails_enabled?
- issue.project.emails_enabled?
+ def parent_emails_enabled?
+ issue.resource_parent.emails_enabled?
end
delegator_override :service_desk_reply_to