@@ -, +, @@ Can't use string ("") as a HASH ref while "strict refs" in use at /usr/share/koha/lib/C4/Items.pm line 1605. --- C4/Items.pm | 4 +++- acqui/addorderiso2709.pl | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) --- a/C4/Items.pm +++ a/C4/Items.pm @@ -1525,10 +1525,12 @@ sub _find_value { =head2 PrepareItemrecordDisplay - PrepareItemrecordDisplay($itemrecord,$bibnum,$itemumber,$frameworkcode); + PrepareItemrecordDisplay($bibnum,$itemumber,$defaultvalues,$frameworkcode); Returns a hash with all the fields for Display a given item data in a template +$defaultvalues should either contain a hashref of values for the new item, or be undefined. + The $frameworkcode returns the item for the given frameworkcode, ONLY if bibnum is not provided =cut --- a/acqui/addorderiso2709.pl +++ a/acqui/addorderiso2709.pl @@ -108,11 +108,11 @@ if ($op eq ""){ import_biblios_list($template, $cgiparams->{'import_batch_id'}); if ( $basket->effective_create_items eq 'ordering' && !$basket->is_standing ) { # prepare empty item form - my $cell = PrepareItemrecordDisplay( '', '', '', 'ACQ' ); + my $cell = PrepareItemrecordDisplay( '', '', undef, 'ACQ' ); # warn "==> ".Data::Dumper::Dumper($cell); unless ($cell) { - $cell = PrepareItemrecordDisplay( '', '', '', '' ); + $cell = PrepareItemrecordDisplay( '', '', undef, '' ); $template->param( 'NoACQframework' => 1 ); } my @itemloop; --