From 8be12fa22362991644342162fa1e8be0366a8b57 Mon Sep 17 00:00:00 2001
From: Robert Goldmann <deadlocker@gmx.de>
Date: Mon, 17 Oct 2022 19:30:17 +0200
Subject: [PATCH] #722 - fixed access to ftl variable

---
 .../resources/templates/transactions/newTransactionMacros.ftl   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/BudgetMasterServer/src/main/resources/templates/transactions/newTransactionMacros.ftl b/BudgetMasterServer/src/main/resources/templates/transactions/newTransactionMacros.ftl
index 9a525101c..d6b6d6042 100644
--- a/BudgetMasterServer/src/main/resources/templates/transactions/newTransactionMacros.ftl
+++ b/BudgetMasterServer/src/main/resources/templates/transactions/newTransactionMacros.ftl
@@ -196,7 +196,7 @@
                 <#assign buttonEditFutureClasses='text-black hidden'/>
             </#if>
 
-            <#if isEdit>
+            <#if isEdit && actualOccurrenceTransactionId??>
                 <@header.buttonLink url='/transactions/' + actualOccurrenceTransactionId?c + '/editFutureRepetitions' icon='move_up' localizationKey='repeating.button.edit.future' id='button-transaction-edit-future-occurrences' color='background-blue-baby' classes="${buttonEditFutureClasses}"/>
             </#if>
         </div>
-- 
GitLab