]> 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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 10 Nov 2023 07:10:13 +0000 (21:10 -1000)
commit936a311609de3af6aa036604cfe30a54630bca09
tree26c1735ec3214bf9acf93619c75e31a4968058c9
parent1d15d94279790c4561ee0e4bd71f496d7e582c3a
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>
(cherry picked from commit 38e95c7769ccb7686c1e10347173bfaffa4b70c1)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/lib/koha/cateditor/koha-backend.js
svc/bib