Merge pull request #6524 from tchak/fix-no-log-on-dossiers-brouillons

fix(dossier): never write dossier logs on dossiers brouillons
This commit is contained in:
Paul Chavard 2021-10-06 11:06:50 +02:00 committed by GitHub
commit 89a52d5210
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -584,7 +584,7 @@ class Dossier < ApplicationRecord
end
def log_operations?
!procedure.brouillon?
!procedure.brouillon? && !brouillon?
end
def keep_track_on_deletion?