[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] CVS: koha/C4/Circulation Borrissues.pm,1.2,1.3
From: |
Andrew Arensburger |
Subject: |
[Koha-cvs] CVS: koha/C4/Circulation Borrissues.pm,1.2,1.3 |
Date: |
Sat, 05 Oct 2002 02:53:47 -0700 |
Update of /cvsroot/koha/koha/C4/Circulation
In directory usw-pr-cvs1:/tmp/cvs-serv23241/C4/Circulation
Modified Files:
Borrissues.pm
Log Message:
Merged with arensb-context branch: use C4::Context->dbh instead of
&C4Connect, and generally prefer C4::Context over C4::Database.
Index: Borrissues.pm
===================================================================
RCS file: /cvsroot/koha/koha/C4/Circulation/Borrissues.pm,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** Borrissues.pm 14 Aug 2002 18:12:52 -0000 1.2
--- Borrissues.pm 5 Oct 2002 09:53:45 -0000 1.3
***************
*** 25,29 ****
require Exporter;
use DBI;
! use C4::Database;
use C4::Print;
use C4::Format;
--- 25,29 ----
require Exporter;
use DBI;
! use C4::Context;
use C4::Print;
use C4::Format;
***************
*** 74,78 ****
my ($env,$borrower)address@hidden;
my @issues;
! my $dbh=C4Connect;
my $query = "select * from issues,items,biblioitems,biblio
where borrowernumber = '$borrower->{'borrowernumber'}'
--- 74,78 ----
my ($env,$borrower)address@hidden;
my @issues;
! my $dbh = C4::Context->dbh;
my $query = "select * from issues,items,biblioitems,biblio
where borrowernumber = '$borrower->{'borrowernumber'}'
***************
*** 86,94 ****
my $x;
while (my $data = $sth->fetchrow_hashref) {
@issues[$x] =$data;
$x++;
}
$sth->finish();
- $dbh->disconnect();
remoteprint ($env,address@hidden,$borrower);
}
--- 86,95 ----
my $x;
while (my $data = $sth->fetchrow_hashref) {
+ # FIXME - This should be $issues[$x] = $data, right?
+ # Or better yet, push @issues, $data.
@issues[$x] =$data;
$x++;
}
$sth->finish();
remoteprint ($env,address@hidden,$borrower);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Koha-cvs] CVS: koha/C4/Circulation Borrissues.pm,1.2,1.3,
Andrew Arensburger <=