force the staff flag to true for staff-created notes
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 13 Jul 2009 16:22:10 +0000 (16:22 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 13 Jul 2009 16:22:10 +0000 (16:22 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@13573 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Circ/Holds.pm

index 65e0232..c72ebd2 100644 (file)
@@ -683,6 +683,7 @@ sub hold_note_CUD {
     if($hold->usr ne $e->requestor->id) {
         my $usr = $e->retrieve_actor_user($hold->usr);
         return $e->die_event unless $e->allowed('UPDATE_HOLD', $usr->home_ou);
+        $note->staff('t') if $note->isnew;
     }
 
     if($note->isnew) {