]> git.koha-community.org Git - koha.git/commit
Bug 29040: Remove warning from the itemtype edit view
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 19 Nov 2021 13:54:58 +0000 (14:54 +0100)
committerKyle Hall <kyle@bywatersolutions.com>
Fri, 17 Dec 2021 14:02:00 +0000 (09:02 -0500)
commit2923a5cbb0e8cd2f9ab8ec9f93b5cc40bb5ba641
treeaad6c18118ddd6e911138f938250cd9dc4283b51
parentf69cedea8ad8fbcc99e7b7068bc7d1b2628fadce
Bug 29040: Remove warning from the itemtype edit view

Use of uninitialized value $interface in concatenation (.) or string at /kohadevbox/koha/C4/Languages.pm line 121.

We are expecting "intranet" or "opac, here we sent undef which raises a
warning.
For no change in behaviour we can send "both" (or whatever different
than "intranet" and "opac").

Test plan:
Hit /cgi-bin/koha/admin/itemtypes.pl?op=add_form&itemtype=BK
Notice that the warning does no longer appear in the logs with the patch
applied.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
admin/itemtypes.pl