mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-15 03:13:20 +08:00
Merge pull request #2826 from aignatov-bio/ai-sci-4985-fix-error-on-canvas-page
Skip implications for my_module canvas position update [SCI-4985]
This commit is contained in:
commit
823ac1e70d
1 changed files with 7 additions and 1 deletions
|
@ -25,7 +25,13 @@ class MyModule < ApplicationRecord
|
|||
|
||||
validate :check_status, if: :my_module_status_id_changed?
|
||||
validate :check_status_conditions, if: :my_module_status_id_changed?
|
||||
validate :check_status_implications, unless: :my_module_status_id_changed?
|
||||
validate :check_status_implications, unless: proc { |mm|
|
||||
mm.my_module_status_id_changed? ||
|
||||
mm.x_changed? ||
|
||||
mm.y_changed? ||
|
||||
mm.my_module_group_id_changed? ||
|
||||
mm.workflow_order_changed?
|
||||
}
|
||||
|
||||
belongs_to :created_by,
|
||||
foreign_key: 'created_by_id',
|
||||
|
|
Loading…
Reference in a new issue