From 60eed4ec018698565f1ae0a986cf5b0cad3fe2cb Mon Sep 17 00:00:00 2001 From: Kara Diaby Date: Thu, 2 Jun 2022 15:25:55 +0200 Subject: [PATCH] model --- app/models/procedure.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/procedure.rb b/app/models/procedure.rb index 1aef4d3fa..c4c67028b 100644 --- a/app/models/procedure.rb +++ b/app/models/procedure.rb @@ -405,7 +405,7 @@ class Procedure < ApplicationRecord end def draft_changed? - publiee? && published_revision.different_from?(draft_revision) && revision_changes.present? + published_revision.different_from?(draft_revision) && revision_changes.present? end def revision_changes