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