mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-27 02:04:33 +08:00
Merge pull request #3412 from aignatov-bio/ai-sci-5568-add-missed-activity-for-tag-removing
Add missed activity for tag removing [SCI-5568]
This commit is contained in:
commit
6450e221a9
1 changed files with 12 additions and 0 deletions
|
@ -134,6 +134,18 @@ class MyModuleTagsController < ApplicationController
|
|||
def destroy_by_tag_id
|
||||
tag = @my_module.my_module_tags.find_by_tag_id(params[:id])
|
||||
|
||||
Activities::CreateActivityService
|
||||
.call(activity_type: :remove_task_tag,
|
||||
owner: current_user,
|
||||
subject: tag.my_module,
|
||||
project:
|
||||
tag.my_module.experiment.project,
|
||||
team: current_team,
|
||||
message_items: {
|
||||
my_module: tag.my_module.id,
|
||||
tag: tag.tag.id
|
||||
})
|
||||
|
||||
return render_404 unless tag
|
||||
|
||||
tag.destroy
|
||||
|
|
Loading…
Reference in a new issue