diff options
author | m b <becker714td@gmail.com> | 2018-03-23 08:09:26 +0300 |
---|---|---|
committer | m b <becker714td@gmail.com> | 2018-04-05 21:24:45 +0300 |
commit | b099c6ff9fcbd81beb75fd12bff8d1d5b9c16083 (patch) | |
tree | bab585d9d1c522792c9313a3e5c1c1be523beaa3 /app/services/issuable | |
parent | 6b3585d8ea15a7ee1a5cd2f5799caace48ab0c32 (diff) |
Deleting a MR you are assigned to should decrements counter
The merge request counter in the UI was not decreasing when a merge
request was deleting.
This was just due to the cache not being
refreshed on a delete action.
fixes: https://gitlab.com/gitlab-org/gitlab-ce/issues/44458
Diffstat (limited to 'app/services/issuable')
-rw-r--r-- | app/services/issuable/destroy_service.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/services/issuable/destroy_service.rb b/app/services/issuable/destroy_service.rb index 7197a426a72..0b1a33518c6 100644 --- a/app/services/issuable/destroy_service.rb +++ b/app/services/issuable/destroy_service.rb @@ -4,6 +4,7 @@ module Issuable TodoService.new.destroy_target(issuable) do |issuable| if issuable.destroy issuable.update_project_counter_caches + issuable.assignees.each(&:invalidate_cache_counts) end end end |