From 35df86da596cdcd5e6d9fb0bc7c14f303a4a7e57 Mon Sep 17 00:00:00 2001 From: Chris Nighswonger Date: Tue, 18 Mar 2008 09:22:45 -0400 Subject: [PATCH] Correcting Logging on ModMember function so that the query is logged in the 'info' field. Signed-off-by: Joshua Ferraro --- C4/Members.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/C4/Members.pm b/C4/Members.pm index 151c4159d5..8d3861918b 100644 --- a/C4/Members.pm +++ b/C4/Members.pm @@ -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 -- 2.39.5