Bugzilla – Attachment 13461 Details for
Bug 9088
neworderempty should preselect the only active fund for new orders
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
9088 Dbrev
patch.txt (text/plain), 2.39 KB, created by
Marcel de Rooy
on 2012-11-15 13:30:57 UTC
(
hide
)
Description:
9088 Dbrev
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2012-11-15 13:30:57 UTC
Size:
2.39 KB
patch
obsolete
>From a37c9b87ff4e6a7ef9ccf1ce618788230c91bee1 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Thu, 15 Nov 2012 14:10:42 +0100 >Subject: [PATCH] 9088: Default values for fund and item type on neworderempty form (dbrev) >Content-Type: text/plain; charset="utf-8" > >Adds pref to database for install and upgrade. >--- > 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 a4e4102..86651bb 100644 >--- a/installer/data/mysql/sysprefs.sql >+++ b/installer/data/mysql/sysprefs.sql >@@ -386,3 +386,4 @@ INSERT INTO systempreferences (variable,value,explanation,type) VALUES('OPACdidy > INSERT INTO systempreferences (variable,value,explanation,type) VALUES('INTRAdidyoumean',NULL,'Did you mean? configuration for the Intranet. Do not change, as this is controlled by /cgi-bin/koha/admin/didyoumean.pl.','Free'); > INSERT INTO systempreferences (variable, value, options, explanation, type) VALUES ('BlockReturnOfWithdrawnItems', '1', '0', 'If enabled, items that are marked as withdrawn cannot be returned.', 'YesNo'); > INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('HoldsToPullStartDate','2','Set the default start date for the Holds to pull list to this many days ago',NULL,'Integer'); >+INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('AcqNewOrderEmptyDefaults','','Defaults for fund and itemtype on neworderempty form',NULL,'Free'); >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index 518f23a..cd63251 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -6055,6 +6055,13 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { > SetVersion ($DBversion); > } > >+$DBversion = "3.09.00.XXX"; >+if (C4::Context->preference("Version") < TransformToNum($DBversion)) { >+ $dbh->do("INSERT IGNORE INTO systempreferences (variable,value,explanation,type) VALUES('AcqNewOrderEmptyDefaults','','Defaults for fund and itemtype on neworderempty form','Free')"); >+ print "Upgrade to $DBversion done (Bug 9088: Default values for fund and item type on neworderempty form)\n"; >+ SetVersion ($DBversion); >+} >+ > =head1 FUNCTIONS > > =head2 TableExists($table) >-- >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 9088
:
13460
|
13461
|
14957
|
14958
|
26790
|
27067
|
27188
|
27191
|
27712
|
28043
|
28142
|
28291