controller

This commit is contained in:
Kara Diaby 2022-06-02 15:26:04 +02:00
parent 60eed4ec01
commit d2bd2ffcbe
2 changed files with 7 additions and 5 deletions

View file

@ -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