Bugzilla – Attachment 14958 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: Default values for fund and item type on neworderempty form (dbrev)
9088-Default-values-for-fund-and-item-type-on-newo.patch (text/plain), 2.29 KB, created by
Marcel de Rooy
on 2013-01-30 15:30:26 UTC
(
hide
)
Description:
9088: Default values for fund and item type on neworderempty form (dbrev)
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2013-01-30 15:30:26 UTC
Size:
2.29 KB
patch
obsolete
>From c2a2cd7d8cb6f2e4c3036e1e30f6982df9797602 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 d5d15d7..22df1f5 100644 >--- a/installer/data/mysql/sysprefs.sql >+++ b/installer/data/mysql/sysprefs.sql >@@ -406,3 +406,4 @@ INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES(' > INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('NotesBlacklist','','List of notes fields that should not appear in the title notes/description separator of details',NULL,'free'); > INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES ('SCOUserCSS', '', NULL, 'Add CSS to be included in the SCO module in an embedded <style> tag.', 'free'); > INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES ('SCOUserJS', '', NULL, 'Define custom javascript for inclusion in the SCO module', 'free'); >+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 77265f4..da97b16 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -6339,6 +6339,13 @@ if ( CheckVersion($DBversion) ) { > SetVersion ($DBversion); > } > >+$DBversion = "3.11.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