Merge pull request #664 from ZmagoD/zd_SCI_1315

removes the delete function of uncompleted steps [fixes SCI-1315]
This commit is contained in:
Zmago Devetak 2017-06-13 09:32:26 +02:00 committed by GitHub
commit 21577cd0e9

View file

@ -84,8 +84,6 @@ class ReportElement < ActiveRecord::Base
if parent_model == 'experiment'
destroy unless send(parent_model).project == report.project
elsif parent_model == 'step'
destroy unless send(parent_model).completed
else
destroy unless (send(parent_model).active? rescue send(parent_model))
end