Bugzilla – Attachment 12051 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]
followup
0002-Bug-7671-followup-delete-return-of-makepayment-becau.patch (text/plain), 1.72 KB, created by
Stéphane Delaune
on 2012-09-07 15:05:26 UTC
(
hide
)
Description:
followup
Filename:
MIME Type:
Creator:
Stéphane Delaune
Created:
2012-09-07 15:05:26 UTC
Size:
1.72 KB
patch
obsolete
>From fe0dc3e62ee5bbee9c4851ba6fd007f7b0dd0a1f 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 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 >
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