View | Details | Raw Unified | Return to bug 14224
Collapse All | Expand All

(-)a/opac/svc/patron_notes (-3 / +2 lines)
Lines 19-25 Link Here
19
19
20
use Modern::Perl;
20
use Modern::Perl;
21
21
22
use JSON qw( to_json );
22
use JSON qw( encode_json );
23
use C4::Service;
23
use C4::Service;
24
use C4::Auth qw /check_cookie_auth/;
24
use C4::Auth qw /check_cookie_auth/;
25
use C4::Letters;
25
use C4::Letters;
Lines 97-103 if ($is_ajax) { Link Here
97
            $status = "fail";
97
            $status = "fail";
98
        }
98
        }
99
99
100
        my $json = to_json ( { status => $status, note => $clean_note, issue_id => $issue_id } );
100
        my $json = encode_json ( { status => $status, note => $clean_note, issue_id => $issue_id } );
101
        output_with_http_headers($query, undef, $json, 'json');
101
        output_with_http_headers($query, undef, $json, 'json');
102
        exit;
102
        exit;
103
    } # END Issue Note
103
    } # END Issue Note
104
- 

Return to bug 14224