Found the bug and fixed it

This commit is contained in:
Zanz2 2018-08-21 13:26:16 +02:00
parent 422baaf64a
commit ab3b15e13e

View file

@ -515,6 +515,7 @@ class StepsController < ApplicationController
params[:tables_attributes].each do |_, table|
next unless table['_destroy']
table_to_destroy = Table.find_by_id(table['id'])
next if table_to_destroy.nil?
table_to_destroy.report_elements.destroy_all
end
end