From 719e06d320993d6888a41d0d6d4be8e136216721 Mon Sep 17 00:00:00 2001 From: Nicole C. Engard Date: Tue, 6 Sep 2011 15:03:09 -0400 Subject: [PATCH] Follow up for Bug 6390: Add upatedatabase.pl Content-Type: text/plain; charset="utf-8" This patch updated the language of the preference and added to updatedatabase.pl which was missing in the last patch. Signed-off-by: Katrin Fischer --- installer/data/mysql/updatedatabase.pl | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 6b88c29..8799598 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -4446,6 +4446,13 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { SetVersion($DBversion); } +$DBversion = "3.05.00.XXX"; +if (C4::Context->preference("Version") < TransformToNum($DBversion)) { + $dbh->do("INSERT INTO `systempreferences` (variable,value,options,explanation,type) VALUES ('AcqViewBaskets','user','user|branch|all','Define which baskets a user is allowed to view: his own only, any within his branch or all','Choice')"); + print "Upgrade to $DBversion done (Add syspref AcqViewBaskets)\n"; + SetVersion($DBversion); +} + =head1 FUNCTIONS -- 1.7.4.1