Bug 7677: QA followup
Fix 'unique contraint primary' error when receiving serials Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
parent
7e55d09c42
commit
381dd46c36
|
|
@ -39,7 +39,7 @@ Koha::Serial::Item - Koha Serial Item Object class
|
|||
|
||||
=cut
|
||||
|
||||
sub type {
|
||||
sub _type {
|
||||
return 'Serialitem';
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -257,7 +257,7 @@ if ( $op and $op eq 'serialchangestatus' ) {
|
|||
my $previous = GetPreviousSerialid($subscriptionids[$i]);
|
||||
if ($previous) {
|
||||
|
||||
my $serialitem = Koha::Serial::Items->find( $previous );
|
||||
my $serialitem = Koha::Serial::Items->search( {serialid => $previous} )->next;
|
||||
my $itemnumber = $serialitem ? $serialitem->itemnumber : undef;
|
||||
if ($itemnumber) {
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue