controller
This commit is contained in:
parent
60eed4ec01
commit
d2bd2ffcbe
2 changed files with 7 additions and 5 deletions
|
@ -405,7 +405,7 @@ class Procedure < ApplicationRecord
|
|||
end
|
||||
|
||||
def draft_changed?
|
||||
published_revision.different_from?(draft_revision) && revision_changes.present?
|
||||
!brouillon? && published_revision.different_from?(draft_revision) && revision_changes.present?
|
||||
end
|
||||
|
||||
def revision_changes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue