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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 15 Dec 2021 22:14:26 +0000 (12:14 -1000)
commita3594f160a773384fb835d253ddb99d7589f6521
tree5f074b5b8642fa0d50c9624708c1715a4ab67791
parentc403c972ca77547dd0f7cf18411d0c99acad96d7
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>
admin/itemtypes.pl