Bug 35152: Display 'syspref removed' success only if removed

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Jonathan Druart 2025-01-16 12:55:40 +01:00 committed by Katrin Fischer
parent 41a2d2edd2
commit 9740f6fa5f
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834

View file

@ -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'";
},
};