Correcting Logging on ModMember function so that the query is logged in the 'info' field.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Chris Nighswonger 2008-03-18 09:22:45 -04:00 committed by Joshua Ferraro
parent 9cce58f468
commit 35df86da59
1 changed files with 2 additions and 1 deletions

View File

@ -633,7 +633,7 @@ sub ModMember {
# is adult check guarantees;
UpdateGuarantees(%data);
}
&logaction(C4::Context->userenv->{'number'},"MEMBERS","MODIFY",$data{'borrowernumber'},"")
&logaction(C4::Context->userenv->{'number'},"MEMBERS","MODIFY",$data{'borrowernumber'},"$query (executed w/ arg: $data{'borrowernumber'})")
if C4::Context->preference("BorrowersLog");
}
@ -1734,6 +1734,7 @@ sub GetPatronImage {
PutPatronImage($cardnumber, $mimetype, $imgfile);
Stores patron binary image data and mimetype in database.
NOTE: This function is good for updating images as well as inserting new images in the database.
=cut