From 9c061d9837899d0ecb17ad94864dc2ede5b9f955 Mon Sep 17 00:00:00 2001
From: Yohann D'ANELLO <yohann.danello@gmail.com>
Date: Sun, 16 Aug 2020 00:04:35 +0200
Subject: [PATCH] Free the transfer lock in case of transfer error

---
 note_kfet/static/js/transfer.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/note_kfet/static/js/transfer.js b/note_kfet/static/js/transfer.js
index c3f86239..f26dbd85 100644
--- a/note_kfet/static/js/transfer.js
+++ b/note_kfet/static/js/transfer.js
@@ -273,6 +273,7 @@ $("#btn_transfer").click(function() {
                     addMsg("Attention : la transaction de " + pretty_money(amount) + " de la note " + source.name
                         + " vers la note " + dest.name + " n'a pas été faite car il s'agit de la même note au départ" +
                         " et à l'arrivée.","warning", 10000);
+                    LOCK = false;
                     return;
                 }
 
-- 
GitLab