Fix archive/restore propagation [SCI-8004]

This commit is contained in:
Anton 2023-03-07 10:44:44 +01:00
parent b2cf5548f6
commit 55dca41434

View file

@ -1107,10 +1107,12 @@ class ProtocolsController < ApplicationController
begin
Protocol.transaction do
@protocols.find_each do |protocol|
protocol = protocol.parent if protocol.parent_id
protocol.method(action).call(current_user)
end
end
rescue
rescue StandardError => e
Rails.logger.error e.message
rollbacked = true
end