Bug 29544: Ensure logged in user is allowed to modify checkout note

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
(cherry picked from commit 22d733e277a82ee6e707a5dd023d0317b15322a3)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2021-11-22 14:56:58 +01:00 committed by Andrew Fuerste-Henry
parent 9cfe32aaad
commit 697c51335e
1 changed files with 1 additions and 1 deletions

View File

@ -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 );