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

(-)a/C4/Circulation.pm (-1 / +1 lines)
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;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (-1 / +1 lines)
Lines 590-596 No patron matched <span class="ex">[% message %]</span> Link Here
590
<div class="yui-g">
590
<div class="yui-g">
591
591
592
[% IF privacy == 2 AND NOT Koha.Preference('AnonymousPatron') %]
592
[% IF privacy == 2 AND NOT Koha.Preference('AnonymousPatron') %]
593
    <div class="dialog alert"><strong>Error:</strong> This patron has requested a privacy on returning item but the AnonymousPatron pref is not set correctly.</div>
593
    <div class="dialog alert"><strong>Error:</strong>This patron has requested their circulation history be anonymized on check-in, but the AnonymousPatron system preference is empty or incorrect.</div>
594
[% END %]
594
[% END %]
595
595
596
[% IF ( !noissues ) || ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') )%]
596
[% IF ( !noissues ) || ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') )%]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt (-2 / +1 lines)
Lines 119-125 $(document).ready(function () { Link Here
119
<div class="yui-g">
119
<div class="yui-g">
120
120
121
[% IF privacy == 2 AND NOT Koha.Preference('AnonymousPatron') %]
121
[% IF privacy == 2 AND NOT Koha.Preference('AnonymousPatron') %]
122
    <div class="dialog alert"><strong>Error:</strong> This patron has requested a privacy on returning item but the AnonymousPatron pref is not set correctly.</div>
122
    <div class="dialog alert"><strong>Error:</strong>This patron has requested their circulation history be anonymized on check-in, but the AnonymousPatron system preference is empty or incorrect.</div>
123
[% ELSIF NOT Koha.Preference('AnonymousPatron') AND Koha.Preference('OPACPrivacy') %]
123
[% ELSIF NOT Koha.Preference('AnonymousPatron') AND Koha.Preference('OPACPrivacy') %]
124
    <div class="dialog alert"><strong>Error:</strong> The system preference OPACPrivacy is set but AnonymousPatron is not! Please correct this before continuing circulation.</div>
124
    <div class="dialog alert"><strong>Error:</strong> The system preference OPACPrivacy is set but AnonymousPatron is not! Please correct this before continuing circulation.</div>
125
[% END %]
125
[% END %]
126
- 

Return to bug 14655