diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-20 15:19:03 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-20 15:19:03 +0000 |
commit | 14bd84b61276ef29b97d23642d698de769bacfd2 (patch) | |
tree | f9eba90140c1bd874211dea17750a0d422c04080 /app/services/work_items/parent_links/create_service.rb | |
parent | 891c388697b2db0d8ee0c8358a9bdbf6dc56d581 (diff) | |
download | gitlab-ce-14bd84b61276ef29b97d23642d698de769bacfd2.tar.gz |
Add latest changes from gitlab-org/gitlab@15-10-stable-eev15.10.0-rc42
Diffstat (limited to 'app/services/work_items/parent_links/create_service.rb')
-rw-r--r-- | app/services/work_items/parent_links/create_service.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/services/work_items/parent_links/create_service.rb b/app/services/work_items/parent_links/create_service.rb index 288ca152f93..85b470c47ca 100644 --- a/app/services/work_items/parent_links/create_service.rb +++ b/app/services/work_items/parent_links/create_service.rb @@ -10,6 +10,8 @@ module WorkItems link = WorkItems::ParentLink.find_or_initialize_by(work_item: work_item) link.work_item_parent = issuable + link.move_to_end + if link.changed? && link.save create_notes(work_item) end |