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

(-)a/Koha/Patron/Relationship.pm (-1 / +1 lines)
Lines 48-54 Overloaded method that makes some checks before storing on the DB Link Here
48
sub store {
48
sub store {
49
    my ( $self ) = @_;
49
    my ( $self ) = @_;
50
50
51
    my @valid_relationships = split /,|\|/, C4::Context->preference('borrowerRelationship');
51
    my @valid_relationships = split /\|/, C4::Context->preference('borrowerRelationship');
52
52
53
    Koha::Exceptions::Patron::Relationship::InvalidRelationship->throw(
53
    Koha::Exceptions::Patron::Relationship::InvalidRelationship->throw(
54
        no_relationship => 1 )
54
        no_relationship => 1 )
(-)a/members/memberentry.pl (-2 / +1 lines)
Lines 107-113 my @messages; Link Here
107
## Deal with guarantor stuff
107
## Deal with guarantor stuff
108
$template->param( relationships => scalar $patron->guarantor_relationships ) if $patron;
108
$template->param( relationships => scalar $patron->guarantor_relationships ) if $patron;
109
109
110
my @relations = split /,|\|/, C4::Context->preference('borrowerRelationship');
110
my @relations = split /\|/, C4::Context->preference('borrowerRelationship');
111
my $empty_relationship_allowed = grep {$_ eq ""} @relations;
111
my $empty_relationship_allowed = grep {$_ eq ""} @relations;
112
$template->param( empty_relationship_allowed => $empty_relationship_allowed );
112
$template->param( empty_relationship_allowed => $empty_relationship_allowed );
113
113
114
- 

Return to bug 25946