Bugzilla – Attachment 24469 Details for
Bug 11237
Clarify explanation for the new pref AcqItemSetSubfieldsWhenReceived
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED OFF] Bug 11237: Update default value for pref AcqItemSetSubfieldsWhenReceived
SIGNED-OFF-Bug-11237-Update-default-value-for-pref.patch (text/plain), 2.60 KB, created by
Mark Tompsett
on 2014-01-16 19:27:55 UTC
(
hide
)
Description:
[SIGNED OFF] Bug 11237: Update default value for pref AcqItemSetSubfieldsWhenReceived
Filename:
MIME Type:
Creator:
Mark Tompsett
Created:
2014-01-16 19:27:55 UTC
Size:
2.60 KB
patch
obsolete
>From c35abf453d00c5a7483410639aff64bdb88e183b Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Thu, 16 Jan 2014 11:02:59 +0100 >Subject: [PATCH] [SIGNED OFF] Bug 11237: Update default value for pref > AcqItemSetSubfieldsWhenReceived > >The default value for this pref should be an empty string, not "0". > >Signed-off-by: Mark Tompsett <mtompset@hotmail.com> >--- > installer/data/mysql/sysprefs.sql | 2 +- > installer/data/mysql/updatedatabase.pl | 9 ++++++++- > 2 files changed, 9 insertions(+), 2 deletions(-) > >diff --git a/installer/data/mysql/sysprefs.sql b/installer/data/mysql/sysprefs.sql >index 5d37379..6ebce00 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','','Upon receiving items, update their subfields if they were created when placing an order (e.g. o=5|a="foo bar")','Free'), >+('AcqItemSetSubfieldsWhenReceived','','','Upon receiving items, update their subfields if they were created when placing an order (e.g. o=5|a="foo bar")','Free'), > ('AcquisitionDetails', '1', '', 'Hide/Show acquisition details on the biblio detail page.', 'YesNo'), > ('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'), >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index 7f706c1..2965dbe 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -7919,7 +7919,14 @@ if(CheckVersion($DBversion)) { > SET explanation = 'Upon receiving items, update their subfields if they were created when placing an order (e.g. o=5|a="foo bar")' > WHERE variable = "AcqItemSetSubfieldsWhenReceived" > }); >- print "Upgrade to $DBversion done (Bug 11237: Update explanation for AcqItemSetSubfieldsWhenReceived syspref)\n"; >+ >+ $dbh->do(q{ >+ UPDATE systempreferences >+ SET value = '' >+ WHERE variable = "AcqItemSetSubfieldsWhenReceived" >+ AND value = "0" >+ }); >+ print "Upgrade to $DBversion done (Bug 11237: Update explanation and default value for AcqItemSetSubfieldsWhenReceived syspref)\n"; > SetVersion($DBversion); > } > >-- >1.7.9.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 11237
:
22868
|
24376
|
24410
|
24451
|
24469
|
24493
|
24494