From 878fc7517679c758955a965b93fa3518d278326b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ce=C4=BEuch?= Date: Wed, 27 Nov 2024 15:22:08 +0100 Subject: [PATCH] fix not adding timestamps to already signed files --- app/models/document.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/document.rb b/app/models/document.rb index 79639d6..b0dc9cb 100644 --- a/app/models/document.rb +++ b/app/models/document.rb @@ -65,7 +65,7 @@ def visualization def set_add_timestamp parameters['level'] = parameters['level'].gsub(/BASELINE_B/, 'BASELINE_T') if parameters['level'] - parameters['level'] = 'T' unless parameters['level'] + parameters['level'] = 'T' unless parameters['level'] && parameters['level'] != 'B' save! end