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

(-)a/Koha/Patron.pm (-3 / +3 lines)
Lines 471-479 Returns Koha::Patron::Relationships object for this patron's guarantors Link Here
471
471
472
Returns the set of relationships for the patrons that are guarantors for this patron.
472
Returns the set of relationships for the patrons that are guarantors for this patron.
473
473
474
This is returned instead of a Koha::Patron object because the guarantor
474
Note that a guarantor should exist as a patron in Koha; it was not possible
475
may not exist as a patron in Koha. If this is true, the guarantors name
475
to add them without a guarantor_id in the interface for some time. Bug 30472
476
exists in the Koha::Patron::Relationship object and will have no guarantor_id.
476
restricts it on db level.
477
477
478
=cut
478
=cut
479
479
(-)a/Koha/Patron/Relationship.pm (-6 / +1 lines)
Lines 73-87 sub store { Link Here
73
73
74
=head3 guarantor
74
=head3 guarantor
75
75
76
Returns the Koha::Patron object for the guarantor, if there is one
76
Returns the Koha::Patron object for the guarantor
77
77
78
=cut
78
=cut
79
79
80
sub guarantor {
80
sub guarantor {
81
    my ( $self ) = @_;
81
    my ( $self ) = @_;
82
83
    return unless $self->guarantor_id;
84
85
    return Koha::Patrons->find( $self->guarantor_id );
82
    return Koha::Patrons->find( $self->guarantor_id );
86
}
83
}
87
84
Lines 93-99 Returns the Koha::Patron object for the guarantee Link Here
93
90
94
sub guarantee {
91
sub guarantee {
95
    my ( $self ) = @_;
92
    my ( $self ) = @_;
96
97
    return Koha::Patrons->find( $self->guarantee_id );
93
    return Koha::Patrons->find( $self->guarantee_id );
98
}
94
}
99
95
100
- 

Return to bug 33671