From 39b7f58aa2977f3b8cccb409195e50c0d2e521a6 Mon Sep 17 00:00:00 2001 From: btoumi Date: Fri, 30 Mar 2007 08:38:44 +0000 Subject: [PATCH] add security on borrowernumber,barcode for book issues --- C4/Circulation/Circ2.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/Circulation/Circ2.pm b/C4/Circulation/Circ2.pm index 39111e7d12..32ac018625 100755 --- a/C4/Circulation/Circ2.pm +++ b/C4/Circulation/Circ2.pm @@ -1194,7 +1194,7 @@ Issue a book. Does no check, they are done in canbookbeissued. If we reach this sub issuebook { my ( $env, $borrower, $barcode, $date, $cancelreserve ) = @_; my $dbh = C4::Context->dbh; - +if ($borrower and $barcode){ # my ($borrower, $flags) = &getpatroninformation($env, $borrowernumber, 0); my $iteminformation = getiteminformation( 0, $barcode ); @@ -1401,7 +1401,7 @@ sub issuebook { &logaction(C4::Context->userenv->{'number'},"CIRCULATION","ISSUE",$borrower->{'borrowernumber'},$iteminformation->{'biblionumber'}) if C4::Context->preference("IssueLog"); - + } } =head2 getLoanLength -- 2.39.5