From 1eb014dabb16090c9b4acbdc6feb12b6672e563b Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 12 Nov 2013 10:27:17 +0100 Subject: [PATCH] Bug 11237: Update explanation for pref AcqItemSetSubfieldsWhenReceived Test plan: Update the updatedb entry and search the pref in the admin module. The explanation should have been updated. --- installer/data/mysql/sysprefs.sql | 2 +- installer/data/mysql/updatedatabase.pl | 13 +++++++++++++ .../prog/en/modules/admin/preferences/acquisitions.pref | 2 +- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/installer/data/mysql/sysprefs.sql b/installer/data/mysql/sysprefs.sql index 72eead2..beccfe7 100644 --- a/installer/data/mysql/sysprefs.sql +++ b/installer/data/mysql/sysprefs.sql @@ -1,6 +1,6 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES ('AcqCreateItem','ordering','ordering|receiving|cataloguing','Define when the item is created : when ordering, when receiving, or in cataloguing module','Choice'), -('AcqItemSetSubfieldsWhenReceived','0','','This syspref set a status for item when items are created when receiving (e.g. 995\$o=5)','Free'), +('AcqItemSetSubfieldsWhenReceived','0','','Update subfields in items on receive when items are created when ordering (e.g. 995\$o=5)','Free'), ('AcqViewBaskets','user','user|branch|all','Define which baskets a user is allowed to view: his own only, any within his branch or all','Choice'), ('AcqWarnOnDuplicateInvoice','0','','Warn librarians when they try to create a duplicate invoice','YesNo'), ('AddPatronLists','categorycode','categorycode|category_type','Allow user to choose what list to pick up from when adding patrons','Choice'), diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 6162bc5..fa67342 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -7743,6 +7743,19 @@ if(CheckVersion($DBversion)) { SetVersion($DBversion); } + +$DBversion = "3.13.00.XXX"; +if(CheckVersion($DBversion)) { + $dbh->do(q{ + UPDATE systempreferences + SET explanation = 'Update subfields in items on receive when items are created when ordering (e.g. o=5|a="foo bar")' + WHERE variable = "AcqItemSetSubfieldsWhenReceived" + }); + print "Upgrade to $DBversion done (Bug 11237: Update explanation for AcqItemSetSubfieldsWhenReceived syspref)\n"; + SetVersion($DBversion); +} + + =head1 FUNCTIONS =head2 TableExists($table) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/acquisitions.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/acquisitions.pref index 5eba790..8ee93bf 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/acquisitions.pref +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/acquisitions.pref @@ -44,7 +44,7 @@ Acquisitions: - when the librarian tries to create an invoice with a duplicate number. - - pref: AcqItemSetSubfieldsWhenReceived - - Set subfields for item when items are created when receiving (e.g. o=5|a="foo bar") + - Update subfields in items on receive when items are created when ordering (e.g. o=5|a="foo bar") Printing: - -- 1.7.10.4