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:
parent
526ceeb4fa
commit
3fb8940b5a
|
|
@ -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({
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Reference in New Issue