mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-10 01:19:45 +08:00
Fix archive/restore propagation [SCI-8004]
This commit is contained in:
parent
b2cf5548f6
commit
55dca41434
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue