Bugzilla – Attachment 18610 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.34 KB, created by
Chris Cormack
on 2013-06-03 10:15:37 UTC
(
hide
)
Description:
Bug 9761: dbrev for ConfirmFutureHolds
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2013-06-03 10:15:37 UTC
Size:
2.34 KB
patch
obsolete
>From 49fdeadc82b84b2466e6acdf7e52e4e983a07916 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 > >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. > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > installer/data/mysql/sysprefs.sql | 1 + > installer/data/mysql/updatedatabase.pl | 8 ++++++++ > 2 files changed, 9 insertions(+) > >diff --git a/installer/data/mysql/sysprefs.sql b/installer/data/mysql/sysprefs.sql >index 31485bc..38d2433 100644 >--- a/installer/data/mysql/sysprefs.sql >+++ b/installer/data/mysql/sysprefs.sql >@@ -427,3 +427,4 @@ INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES(' > INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES('UseCourseReserves', '0', 'Enable the course reserves feature.', NULL, 'YesNo'); > INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES('OpacShowHoldNotes',0,'Show hold notes on OPAC','','YesNo'); > INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('CalculateFinesOnReturn','1','Switch to control if overdue fines are calculated on return or not', '', '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 f3a90d8..2a6295a 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -6984,6 +6984,14 @@ INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ( > } > > >+$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 > > =head2 TableExists($table) >-- >1.8.1.2
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