diff --git a/app/controllers/protocols_controller.rb b/app/controllers/protocols_controller.rb index bd5be2e73..6ef38b0d8 100644 --- a/app/controllers/protocols_controller.rb +++ b/app/controllers/protocols_controller.rb @@ -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