Bugzilla – Attachment 15933 Details for
Bug 9761
Make it possible to confirm future hold requests at checkin time
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9761: dbrev for ConfirmFutureHolds
Bug-9761-dbrev-for-ConfirmFutureHolds.patch (text/plain), 2.32 KB, created by
Marcel de Rooy
on 2013-03-07 14:11:19 UTC
(
hide
)
Description:
Bug 9761: dbrev for ConfirmFutureHolds
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2013-03-07 14:11:19 UTC
Size:
2.32 KB
patch
obsolete
>From 4b8430defaf8040fad372e43ad41cc96563f0a7c Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Thu, 7 Mar 2013 14:57:25 +0100 >Subject: [PATCH] Bug 9761: dbrev for ConfirmFutureHolds >Content-Type: text/plain; charset="utf-8" > >Db rev for new pref ConfirmFutureHolds. > >Test plan: >Run [your server]/cgi-bin/koha/installer/install.pl?step=3&op=updatestructure >Optionally, run a new install to test sysprefs.sql. >Or: >Edit sysprefs.sql, leave at least the last few lines including the new one. >--- > installer/data/mysql/sysprefs.sql | 1 + > installer/data/mysql/updatedatabase.pl | 7 +++++++ > 2 files changed, 8 insertions(+), 0 deletions(-) > >diff --git a/installer/data/mysql/sysprefs.sql b/installer/data/mysql/sysprefs.sql >index ca9b6bd..90146f5 100644 >--- a/installer/data/mysql/sysprefs.sql >+++ b/installer/data/mysql/sysprefs.sql >@@ -416,3 +416,4 @@ INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES ( > INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES ('IntranetNumbersPreferPhrase','0', NULL, 'Control the use of phr operator in callnumber and standard number staff client searches', 'YesNo'); > INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('UNIMARCField100Language', 'fre','UNIMARC field 100 default language',NULL,'short'); > INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES('Persona',0,'Use Mozilla Persona for login','','YesNo'); >+INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES('ConfirmFutureHolds','0','Number of days for confirming future holds','','Integer'); >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index 7e5e243..b8d411d 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -6444,6 +6444,13 @@ if ( CheckVersion($DBversion) ) { > SetVersion($DBversion); > } > >+$DBversion ="3.11.00.XXX"; >+if ( CheckVersion($DBversion) ) { >+ $dbh->do("INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES('ConfirmFutureHolds','0','Number of days for confirming future holds','','Integer');"); >+ print "Upgrade to $DBversion done (Bug 9761: Add ConfirmFutureHolds pref)\n"; >+ SetVersion($DBversion); >+} >+ > > =head1 FUNCTIONS > >-- >1.7.7.6
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 9761
:
15932
|
15933
|
15951
|
15980
|
15981
|
15982
|
18609
|
18610
|
18611
|
18612
|
18613
|
18614
|
18615
|
21193
|
21197
|
21198
|
21208
|
21209
|
21227
|
21280