@@ -, +, @@ biblio as template param 3.1 empty: /cgi-bin/koha/cataloguing/additem.pl?op=edititem&biblionumber=384&itemnumber= 3.2 an itemnumber that doesn't exist: /cgi-bin/koha/cataloguing/additem.pl?op=edititem&biblionumber=384&itemnumber=9999999999 3.3 whatever else you come up with.. --- cataloguing/additem.pl | 2 +- .../intranet-tmpl/prog/en/modules/cataloguing/additem.tt | 9 +-------- 2 files changed, 2 insertions(+), 9 deletions(-) --- a/cataloguing/additem.pl +++ a/cataloguing/additem.pl @@ -160,7 +160,7 @@ if ( $op eq 'edititem' || $op eq 'dupeitem' ) { my $item = Koha::Items->find($itemnumber); if ( !$item ) { $itemnumber = undef; - $template->param( item_doesnt_exist => 1 ); + $template->param( biblio => $biblio, item_doesnt_exist => 1 ); output_and_exit( $input, $cookie, $template, 'unknown_item' ); } } --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt @@ -27,13 +27,6 @@ [% Asset.js("js/cataloging_additem.js") | $raw %] @@ -68,7 +61,7 @@
[% IF item_doesnt_exist %]
- Add a new item or go to the records holdings. + Add a new item or go to the records holdings.
[% END %] [% INCLUDE 'blocking_errors.inc' %] --