diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-01 00:07:26 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-01 00:07:26 +0300 |
commit | c9920bcd995962ce70874b7fd08d1d175b50ca20 (patch) | |
tree | 7d02a5dce6207082f0ab0b16c99a71181719314d /app/services/alert_management | |
parent | 533f020a0ba8a3cc9e81538fe91edb273b93d5b7 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/services/alert_management')
-rw-r--r-- | app/services/alert_management/alerts/update_service.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/services/alert_management/alerts/update_service.rb b/app/services/alert_management/alerts/update_service.rb index 464d5f2ecea..089715a42fb 100644 --- a/app/services/alert_management/alerts/update_service.rb +++ b/app/services/alert_management/alerts/update_service.rb @@ -37,7 +37,6 @@ module AlertManagement private attr_reader :alert, :current_user, :params, :param_errors, :status - delegate :resolved?, to: :alert def allowed? current_user&.can?(:update_alert_management_alert, alert) @@ -129,7 +128,7 @@ module AlertManagement def handle_status_change add_status_change_system_note - resolve_todos if resolved? + resolve_todos if alert.resolved? end def add_status_change_system_note @@ -177,3 +176,5 @@ module AlertManagement end end end + +AlertManagement::Alerts::UpdateService.prepend_mod |