Correcting Logging on ModMember function so that the query is logged in the 'info...
authorChris Nighswonger <cnighswonger@foundations.edu>
Tue, 18 Mar 2008 13:22:45 +0000 (09:22 -0400)
committerJoshua Ferraro <jmf@liblime.com>
Tue, 18 Mar 2008 20:09:55 +0000 (15:09 -0500)
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
C4/Members.pm

index 151c415..8d38619 100644 (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