[Koha-bugs] [Bug 36418] Set response's content-type to application/json when needed - svc scripts

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Mar 28 15:14:01 CET 2024


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36418

Victor Grousset/tuxayo <victor at tuxayo.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Signed Off                  |Failed QA

--- Comment #9 from Victor Grousset/tuxayo <victor at tuxayo.net> ---
>> svc/recall

>I missed this one it seems.

This one indeed outputs JSON

>> svc/mana/increment

> I don't know, it's not obvious what is the return.
> Please investigate (test) and you will see if it returns JSON or something else.

It seems the return is nothing. From the code, and from testing.


>> opac/svc/club/enroll
>> opac/svc/club/cancel_enrollment

>If they output JSON, yes they should.

enroll: after testing, yes it does

cancel_enrollment: last two lines
> print $cgi->header( -type => 'text/plain', -charset => 'UTF-8' );
> print to_json( { success => $enrollment ? 1 : 0 } );

lol, yes also
A `type => 'text/plain'` just above a `print to_json`

So work needed on 3 of the 4 suspected files.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list