mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-10 06:37:32 +08:00
Merge pull request #664 from ZmagoD/zd_SCI_1315
removes the delete function of uncompleted steps [fixes SCI-1315]
This commit is contained in:
commit
21577cd0e9
1 changed files with 0 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue