From 04c0e2c552facc1259880e9e4a3e0601154b9655 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 --- .../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 81fe4142839..a4820333e79 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'"; }, }; -- 2.34.1