Lines 52-57
sub store {
Link Here
|
52 |
Koha::Exceptions::Checkouts::ReturnClaims::NoCreatedBy->throw(); |
52 |
Koha::Exceptions::Checkouts::ReturnClaims::NoCreatedBy->throw(); |
53 |
} |
53 |
} |
54 |
|
54 |
|
|
|
55 |
unless ( !$self->issue_id |
56 |
|| Koha::Checkouts->find( $self->issue_id ) |
57 |
|| Koha::Old::Checkouts->find( $self->issue_id ) ) |
58 |
{ |
59 |
Koha::Exceptions::Object::FKConstraint->throw( |
60 |
error => 'Broken FK constraint', |
61 |
broken_fk => 'issue_id' |
62 |
); |
63 |
} |
64 |
|
55 |
return $self->SUPER::store; |
65 |
return $self->SUPER::store; |
56 |
} |
66 |
} |
57 |
|
67 |
|
58 |
- |
|
|