From fe0dc3e62ee5bbee9c4851ba6fd007f7b0dd0a1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Delaune?= Date: Fri, 7 Sep 2012 17:00:38 +0200 Subject: [PATCH 2/2] Bug 7671 : followup : delete return of makepayment because unused, fix updatedatabase --- C4/Accounts.pm | 5 ----- installer/data/mysql/updatedatabase.pl | 2 +- 2 files changed, 1 insertion(+), 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.9.5