Lines 388-394
sub store {
Link Here
|
388 |
|
388 |
|
389 |
if ( C4::Context->preference('ChildNeedsGuarantor') |
389 |
if ( C4::Context->preference('ChildNeedsGuarantor') |
390 |
and ( $self->is_child or $self->category->can_be_guarantee ) |
390 |
and ( $self->is_child or $self->category->can_be_guarantee ) |
391 |
and $self->contactname eq "" |
391 |
and ( !defined $self->contactname || $self->contactname eq "" ) |
392 |
and !@$guarantors ) |
392 |
and !@$guarantors ) |
393 |
{ |
393 |
{ |
394 |
Koha::Exceptions::Patron::Relationship::NoGuarantor->throw(); |
394 |
Koha::Exceptions::Patron::Relationship::NoGuarantor->throw(); |