Lines 2088-2094
sub MarkIssueReturned {
Link Here
|
2088 |
# We need to check if the anonymous patron exist, Koha will fail loudly if it does not |
2088 |
# We need to check if the anonymous patron exist, Koha will fail loudly if it does not |
2089 |
# Note that a warning should appear on the about page (System information tab). |
2089 |
# Note that a warning should appear on the about page (System information tab). |
2090 |
$anonymouspatron = C4::Context->preference('AnonymousPatron'); |
2090 |
$anonymouspatron = C4::Context->preference('AnonymousPatron'); |
2091 |
die "Fatal error: the patron ($borrowernumber) has requested a privacy on returning item but the AnonymousPatron pref is not set correctly" |
2091 |
die "Fatal error: the patron ($borrowernumber) has requested their circulation history be anonymized on check-in, but the AnonymousPatron system preference is empty or not set correctly." |
2092 |
unless C4::Members::GetMember( borrowernumber => $anonymouspatron ); |
2092 |
unless C4::Members::GetMember( borrowernumber => $anonymouspatron ); |
2093 |
} |
2093 |
} |
2094 |
my $dbh = C4::Context->dbh; |
2094 |
my $dbh = C4::Context->dbh; |