From 9740f6fa5fce2392beacaa01806fca5edd2f6581 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 16 Jan 2025 12:55:40 +0100 Subject: [PATCH] Bug 35152: Display 'syspref removed' success only if removed Signed-off-by: Jonathan Druart Signed-off-by: Katrin Fischer --- .../bug-35152-move-RoutingListNote-to-additional-contents.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/installer/data/mysql/atomicupdate/bug-35152-move-RoutingListNote-to-additional-contents.pl b/installer/data/mysql/atomicupdate/bug-35152-move-RoutingListNote-to-additional-contents.pl index 81fe414283..a4820333e7 100755 --- a/installer/data/mysql/atomicupdate/bug-35152-move-RoutingListNote-to-additional-contents.pl +++ b/installer/data/mysql/atomicupdate/bug-35152-move-RoutingListNote-to-additional-contents.pl @@ -34,8 +34,8 @@ return { } # Remove old system preference - $dbh->do("DELETE FROM systempreferences WHERE variable='RoutingListNote'"); - say $out "Removed system preference 'RoutingListNote'"; + $dbh->do("DELETE FROM systempreferences WHERE variable='RoutingListNote'") == 1 + && say $out "Removed system preference 'RoutingListNote'"; }, };