mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-30 19:48:18 +08:00
Merge pull request #3741 from okriuchykhin/ok_SCI_6098_v2
Use the last status flow as a default one for new tasks [SCI-6098]
This commit is contained in:
commit
285d20849c
1 changed files with 1 additions and 1 deletions
|
@ -438,7 +438,7 @@ class MyModule < ApplicationRecord
|
|||
def assign_default_status_flow
|
||||
return if my_module_status.present? || MyModuleStatusFlow.global.blank?
|
||||
|
||||
self.my_module_status = MyModuleStatusFlow.global.first.initial_status
|
||||
self.my_module_status = MyModuleStatusFlow.global.last.initial_status
|
||||
end
|
||||
|
||||
def check_status_conditions
|
||||
|
|
Loading…
Reference in a new issue