From 7fde8dfe60d1e3bdea0392986903901cfcafddba Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Wed, 29 May 2024 17:29:21 +0200 Subject: [PATCH] Bug 36986: (Bug 26176 follow-up) Fix rename StaffLoginBranchBasedOnIP in BDRev Test by running upgrade from 23.11.00 to main Check you see : Upgrade to 23.12.00.061 [15:34:36]: Bug 26176 - Rename AutoLocation and StaffLoginBranchBasedOnIP system preferences Renamed system preference 'AutoLocation' to 'StaffLoginRestrictLibraryByIP' Renamed system preference 'StaffLoginBranchBasedOnIP' to 'StaffLoginLibraryBasedOnIP' Signed-off-by: David Nind Signed-off-by: Victor Grousset/tuxayo Signed-off-by: Martin Renvoize (cherry picked from commit ebd4aa682796b8ac4666e948e7c55fde4d91ad2d) Signed-off-by: Fridolin Somers --- installer/data/mysql/db_revs/231105009.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/installer/data/mysql/db_revs/231105009.pl b/installer/data/mysql/db_revs/231105009.pl index 562d6bc086..f029fafc21 100755 --- a/installer/data/mysql/db_revs/231105009.pl +++ b/installer/data/mysql/db_revs/231105009.pl @@ -18,13 +18,13 @@ return { $dbh->do( q{ - UPDATE systempreferences SET variable = "StaffLoginRestrictLibraryByIP" - WHERE variable = "StaffLoginLibraryBasedOnIP" + UPDATE systempreferences SET variable = "StaffLoginLibraryBasedOnIP" + WHERE variable = "StaffLoginBranchBasedOnIP" } ) == 1 && say_success( $out, - "Renamed system preference 'StaffLoginLibraryBasedOnIP' to 'StaffLoginRestrictLibraryByIP'" + "Renamed system preference 'StaffLoginBranchBasedOnIP' to 'StaffLoginLibraryBasedOnIP'" ); }, -- 2.39.5