Lines 940-950
sub add_guarantors {
Link Here
|
940 |
|
940 |
|
941 |
next unless $guarantor_id; |
941 |
next unless $guarantor_id; |
942 |
|
942 |
|
943 |
$patron->add_guarantor( |
943 |
my $existing_relationship_count = Koha::Patron::Relationships->search({ |
944 |
{ |
944 |
guarantee_id => $patron->id, |
945 |
guarantor_id => $guarantor_id, |
945 |
guarantor_id => $guarantor_id, |
946 |
relationship => $relationship, |
946 |
})->count; |
947 |
} |
947 |
|
948 |
); |
948 |
if ( $existing_relationship_count == 0 ){ |
|
|
949 |
$patron->add_guarantor( |
950 |
{ |
951 |
guarantor_id => $guarantor_id, |
952 |
relationship => $relationship, |
953 |
} |
954 |
); |
955 |
} |
949 |
} |
956 |
} |
950 |
} |
957 |
} |
951 |
- |
|
|