mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-10 09:28:37 +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
|
begin
|
||||||
Protocol.transaction do
|
Protocol.transaction do
|
||||||
@protocols.find_each do |protocol|
|
@protocols.find_each do |protocol|
|
||||||
|
protocol = protocol.parent if protocol.parent_id
|
||||||
protocol.method(action).call(current_user)
|
protocol.method(action).call(current_user)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
rescue
|
rescue StandardError => e
|
||||||
|
Rails.logger.error e.message
|
||||||
rollbacked = true
|
rollbacked = true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue