View | Details | Raw Unified | Return to bug 38175
Collapse All | Expand All

(-)a/Koha/Booking.pm (-3 / +7 lines)
Lines 115-122 sub store { Link Here
115
                $self->biblio_id( $self->item->biblionumber )
115
                $self->biblio_id( $self->item->biblionumber )
116
                    unless $self->biblio_id;
116
                    unless $self->biblio_id;
117
117
118
                Koha::Exceptions::Object::FKConstraint->throw()
118
                Koha::Exceptions::Object::FKConstraint->throw(
119
                    unless ( $self->biblio_id == $self->item->biblionumber );
119
                    broken_fk => 'item/biblio_id',
120
                    value     => "item biblionumber: "
121
                        . $self->item->biblionumber
122
                        . " booking biblio_id: "
123
                        . $self->biblio_id
124
                ) unless ( $self->biblio_id == $self->item->biblionumber );
120
            }
125
            }
121
126
122
            Koha::Exceptions::Object::FKConstraint->throw(
127
            Koha::Exceptions::Object::FKConstraint->throw(
123
- 

Return to bug 38175