Add missing protocol description activity [SCI-7140] (#4401)

This commit is contained in:
artoscinote 2022-09-06 11:03:13 +02:00 committed by GitHub
parent b585219be2
commit 9126b7fca4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -281,6 +281,7 @@ class MyModulesController < ApplicationController
ActiveRecord::Base.transaction do
protocol.update!(protocol_params)
log_activity(:protocol_name_in_task_edited) if protocol.saved_change_to_name?
log_activity(:protocol_description_in_task_edited) if protocol.saved_change_to_description?
TinyMceAsset.update_images(protocol, params[:tiny_mce_images], current_user)
end