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

(-)a/Koha/Patron/Relationship.pm (-1 / +2 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'), -1;
52
    @valid_relationships = ('') unless @valid_relationships;
52
53
53
    Koha::Exceptions::Patron::Relationship::InvalidRelationship->throw(
54
    Koha::Exceptions::Patron::Relationship::InvalidRelationship->throw(
54
        no_relationship => 1 )
55
        no_relationship => 1 )
(-)a/members/memberentry.pl (-2 / +2 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'), -1;
111
@relations = ('') unless @relations;
111
my $empty_relationship_allowed = grep {$_ eq ""} @relations;
112
my $empty_relationship_allowed = grep {$_ eq ""} @relations;
112
$template->param( empty_relationship_allowed => $empty_relationship_allowed );
113
$template->param( empty_relationship_allowed => $empty_relationship_allowed );
113
114
114
- 

Return to bug 25946