When I select an existing Mana comment on a subscription the process completes successfully but in the console this error is returned:
Can't return outside a subroutine at /home/vagrant/kohaclone/svc/mana/increment line 48.
It looks like that script should return JSON.
Created attachment 90413 [details] [review]
Bug 22248: make svc/mana/increment print valid output
- select an existing comment on a subscription
- check the logs, note the error (Can't return outside a subroutine)
- apply this patch
- select an existing comment again
- error should be gone
I cannot reproduce this error to test.... a POST to http://localhost:8081/cgi-bin/koha/svc/mana/increment returns 200 OK with no content body. Browser console is happy and quiet.
Perhaps a change on Mana's end?