Follow up for Bug 6390: Add upatedatabase.pl

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 <Katrin.Fischer.83@web.de>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
Nicole C. Engard 2011-09-06 15:03:09 -04:00 committed by Chris Cormack
parent 0fe43ac28b
commit bc33391fc5

View file

@ -4516,6 +4516,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