Bug 25498: (QA follow-up) Rename virtualshelfshare->patron

This patron is a 'sharee' (not the sharer).

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Marcel de Rooy 2022-06-17 06:58:09 +00:00 committed by Tomas Cohen Arazi
parent 52154c6e90
commit 443c71fa00
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
2 changed files with 4 additions and 4 deletions

View File

@ -81,13 +81,13 @@ sub has_expired {
return $has_expired == 1 ? 1 : 0
}
=head3 patron
=head3 sharee
Returns related Koha::Patron object for this share.
Returns related Koha::Patron object for the sharee (patron who got this share).
=cut
sub patron {
sub sharee {
my $self = shift;
return Koha::Patron->_new_from_dbic( $self->{_result}->borrowernumber );
}

View File

@ -272,7 +272,7 @@ if ( $op eq 'add_form' ) {
my $patrons = [];
my $shares = $shelf->get_shares->search({ borrowernumber => { '!=' => undef } });
while( my $share = $shares->next ) {
push @$patrons, { email => $share->patron->notice_email_address, borrowernumber => $share->get_column('borrowernumber') };
push @$patrons, { email => $share->sharee->notice_email_address, borrowernumber => $share->get_column('borrowernumber') };
}
$template->param( shared_users => $patrons );
$op = 'transfer';