diff --git a/C4/Items.pm b/C4/Items.pm index 05df0c56f0..d2936081c2 100644 --- a/C4/Items.pm +++ b/C4/Items.pm @@ -1897,7 +1897,8 @@ sub _koha_new_item { uri = ?, enumchron = ?, more_subfields_xml = ?, - copynumber = ? + copynumber = ?, + stocknumber = ? "; my $sth = $dbh->prepare($query); $sth->execute( @@ -1934,6 +1935,7 @@ sub _koha_new_item { $item->{'enumchron'}, $item->{'more_subfields_xml'}, $item->{'copynumber'}, + $item->{'stocknumber'}, ); my $itemnumber = $dbh->{'mysql_insertid'}; if ( defined $sth->errstr ) {