]> git.koha-community.org Git - koha.git/commit
Bug 35181: Don't pass undef to header
authorNick Clemens <nick@bywatersolutions.com>
Thu, 2 Nov 2023 10:56:30 +0000 (10:56 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 6 Nov 2023 11:42:46 +0000 (08:42 -0300)
commit38e95c7769ccb7686c1e10347173bfaffa4b70c1
tree55355b94daf9227cb7530c1f571459b69a3f01c0
parent1ff0181227002e8dcea0a3be0176a0cfc8c3fa2b
Bug 35181: Don't pass undef to header

It seems passing an undef value causes the headers to be malformed.

To test:
1 - Visit http://localhost:8081/cgi-bin/koha/svc/bib/303
2 - Note 'Invalid-metadata' at top of page, as well as other headers
3 - Apply patch, restart all
4 - Visit http://localhost:8081/cgi-bin/koha/svc/bib/303
5 - Page should now appear as xml
6 - Edit record 303, or any record with valid metadata in the advanced cataloging editor
7 - Confirm there is no error or alert
8 - Edit record 369 in the advanced cataloging editor
9 - Confirm there is an alert

Signed-off-by: Phil Ringnalda <phil@chetcolibrary.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/lib/koha/cateditor/koha-backend.js
svc/bib