From 30199d5d9e88bf3e286f79491834f4817fff58e8 Mon Sep 17 00:00:00 2001
From: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Date: Wed, 14 Aug 2024 10:19:16 +0200
Subject: [PATCH] Bug 20411: Output only if pref has been deleted

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
---
 installer/data/mysql/atomicupdate/bug_20411.pl | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/installer/data/mysql/atomicupdate/bug_20411.pl b/installer/data/mysql/atomicupdate/bug_20411.pl
index 7590d2d99c9..b9e4950b97d 100755
--- a/installer/data/mysql/atomicupdate/bug_20411.pl
+++ b/installer/data/mysql/atomicupdate/bug_20411.pl
@@ -12,9 +12,7 @@ return {
             q{
             DELETE FROM systempreferences WHERE variable='StaffDetailItemSelection'
         }
-        );
-
-        say $out "Removed system preference 'StaffDetailItemSelection'";
+        ) == 1 && say $out "Removed system preference 'StaffDetailItemSelection'";
 
     },
 };
-- 
2.34.1