From 4f038fcfafff1c92c51c30792308fe254379a565 Mon Sep 17 00:00:00 2001
From: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Date: Fri, 24 Jun 2022 14:30:53 +0100
Subject: [PATCH] Bug 27779: (QA follow-up) Fix database update

Don't overwrite peoples translations if they've already changed the
description.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
---
 installer/data/mysql/atomicupdate/bug_27779.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/installer/data/mysql/atomicupdate/bug_27779.pl b/installer/data/mysql/atomicupdate/bug_27779.pl
index f99c08d481..1be4bf0ff5 100755
--- a/installer/data/mysql/atomicupdate/bug_27779.pl
+++ b/installer/data/mysql/atomicupdate/bug_27779.pl
@@ -9,7 +9,7 @@ return {
 
         $dbh->do(q{
             UPDATE account_credit_types
-            SET description = 'Refund' WHERE code = 'REFUND'
+            SET description = 'Refund' WHERE code = 'REFUND' AND description = 'A refund applied to a patrons fine';
         });
     },
 }
-- 
2.20.1