Bugzilla – Attachment 12056 Details for
Bug 7671
add a real primary key "accountlinesid" in accountlines
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7671 : followup : delete return of makepayment because unused, fix updatedatabase
Bug-7671--followup--delete-return-of-makepayment-b.patch (text/plain), 1.81 KB, created by
Kyle M Hall (khall)
on 2012-09-07 15:33:31 UTC
(
hide
)
Description:
Bug 7671 : followup : delete return of makepayment because unused, fix updatedatabase
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2012-09-07 15:33:31 UTC
Size:
1.81 KB
patch
obsolete
>From 93f1f635f710e03f9a501c3fe6bc7e276e8f427e Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?St=C3=A9phane=20Delaune?= <stephane.delaune@biblibre.com> >Date: Fri, 7 Sep 2012 17:00:38 +0200 >Subject: [PATCH] Bug 7671 : followup : delete return of makepayment because unused, fix updatedatabase >Content-Type: text/plain; charset="utf-8" > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > C4/Accounts.pm | 5 ----- > installer/data/mysql/updatedatabase.pl | 2 +- > 2 files changed, 1 insertions(+), 6 deletions(-) > >diff --git a/C4/Accounts.pm b/C4/Accounts.pm >index f7adca1..d4b3666 100644 >--- a/C4/Accounts.pm >+++ b/C4/Accounts.pm >@@ -225,11 +225,6 @@ sub makepayment { > if ( $data->{'accounttype'} eq 'Rep' || $data->{'accounttype'} eq 'L' ) { > C4::Circulation::ReturnLostItem( $borrowernumber, $data->{'itemnumber'} ); > } >- my $sthr = $dbh->prepare("SELECT max(accountlines_id) AS lastinsertid FROM accountlines"); >- $sthr->execute(); >- my $datalastinsertid = $sthr->fetchrow_hashref; >- $sthr->finish; >- return $datalastinsertid->{'lastinsertid'}; > } > > =head2 getnextacctno >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index 9ddfd1b..5badc33 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -5655,7 +5655,7 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { > $dbh->do("UPDATE systempreferences SET value = 'call_number' WHERE variable = 'OPACdefaultSortField' AND value = 'callnumber'"); > print "Upgrade to $DBversion done (Bug 8657 - Default sort by call number does not work. Correcting system preference value.)\n"; > SetVersion ($DBversion); >- >+} > > $DBversion = "XXX"; > if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { >-- >1.7.2.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 7671
:
8280
|
10022
|
10260
|
10283
|
10343
|
11374
|
11922
|
12051
|
12055
|
12056
|
12219
|
12220
|
12221