diff --git a/app/models/my_module.rb b/app/models/my_module.rb index 640676c04..e7f64f625 100644 --- a/app/models/my_module.rb +++ b/app/models/my_module.rb @@ -504,6 +504,8 @@ class MyModule < ApplicationRecord private def set_completed + return if my_module_status.blank? + if my_module_status.final_status? self.state = 'completed' else