From 6ed95a1d9b9d631e79499b94e03980427eeef22d Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 22 Nov 2021 14:56:58 +0100 Subject: [PATCH] Bug 29544: Ensure logged in user is allowed to modify checkout note Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi Signed-off-by: Victor Grousset/tuxayo (cherry picked from commit 22d733e277a82ee6e707a5dd023d0317b15322a3) Signed-off-by: Wainui Witika-Park --- opac/svc/checkout_notes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opac/svc/checkout_notes b/opac/svc/checkout_notes index a5682c8ceb..e6f2efb33c 100755 --- a/opac/svc/checkout_notes +++ b/opac/svc/checkout_notes @@ -75,7 +75,7 @@ if ($is_ajax) { } } - if ( $issue ) { + if ( $issue && $status eq "saved" ) { $issue->set({ notedate => dt_from_string(), note => $clean_note, noteseen => 0 })->store; if($clean_note) { # only send email if note not empty my $branch = Koha::Libraries->find( $issue->branchcode ); -- 2.39.5