Bug 36084: svc - checkout_notes - OPAC

Decided to not use APIClient for OPAC, LATER.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2024-02-20 15:39:51 +01:00
parent 526ceeb4fa
commit 3fb8940b5a
No known key found for this signature in database
GPG Key ID: A085E712BEF0E0F0
2 changed files with 5 additions and 3 deletions

View File

@ -1390,7 +1390,9 @@
var ajaxData = {
'action': 'issuenote',
'issue_id': issue_id,
'note': note
'note': note,
csrf_token: $('meta[name="csrf-token"]').attr('content'),
op: 'cud-add_note',
};
$.ajax({

View File

@ -48,10 +48,10 @@ if ( $auth_status ne "ok" ) {
exit 0;
}
if ($is_ajax) {
my $action = $query->param('action');
my $op = $query->param('op');
# Issue Note
if ( $action eq 'issuenote' && C4::Context->preference('AllowCheckoutNotes') ) {
if ( $op eq 'cud-add_note' && C4::Context->preference('AllowCheckoutNotes') ) {
my $scrubber = C4::Scrubber->new();
my $note = $query->param('note');
my $issue_id = $query->param('issue_id');