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

(-)a/circ/returns.pl (-2 / +1 lines)
Lines 46-52 use C4::Koha; # FIXME : is it still useful ? Link Here
46
use C4::RotatingCollections;
46
use C4::RotatingCollections;
47
use Koha::DateUtils;
47
use Koha::DateUtils;
48
use Koha::Calendar;
48
use Koha::Calendar;
49
use C4::Dates qw/format_date/;
50
49
51
my $query = new CGI;
50
my $query = new CGI;
52
51
Lines 471-477 foreach my $code ( keys %$messages ) { Link Here
471
        $err{debarname}           = "$borrower->{firstname} $borrower->{surname}";
470
        $err{debarname}           = "$borrower->{firstname} $borrower->{surname}";
472
    }
471
    }
473
    elsif ( $code eq 'PrevDebarred' ) {
472
    elsif ( $code eq 'PrevDebarred' ) {
474
        $err{prevdebarred}        = format_date( $messages->{'PrevDebarred'} );
473
        $err{prevdebarred}        =  $messages->{'PrevDebarred'};
475
    }
474
    }
476
    else {
475
    else {
477
        die "Unknown error code $code";    # note we need all the (empty) elsif's above, or we die.
476
        die "Unknown error code $code";    # note we need all the (empty) elsif's above, or we die.
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt (-2 / +1 lines)
Lines 341-347 $(document).ready(function () { Link Here
341
                        <p class="problem"><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% errmsgloo.debarborrowernumber %]">[% errmsgloo.debarname %]([% errmsgloo.debarcardnumber %])</a> is now debarred until [% errmsgloo.debarred | $KohaDates %] </p>
341
                        <p class="problem"><a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% errmsgloo.debarborrowernumber %]">[% errmsgloo.debarname %]([% errmsgloo.debarcardnumber %])</a> is now debarred until [% errmsgloo.debarred | $KohaDates %] </p>
342
                    [% END %]
342
                    [% END %]
343
                    [% IF ( errmsgloo.prevdebarred ) %]
343
                    [% IF ( errmsgloo.prevdebarred ) %]
344
                        <p class="problem"><b>REMINDER: </b>Patron is restricted until [% errmsgloo.prevdebarred %]</p>
344
                        <p class="problem"><b>REMINDER: </b>Patron is restricted until [% errmsgloo.prevdebarred | $KohaDates %]</p>
345
                    [% END %]
345
                    [% END %]
346
            [% END %]
346
            [% END %]
347
[% IF ( soundon ) %]
347
[% IF ( soundon ) %]
348
- 

Return to bug 8231