diff --git a/circ/circulation.pl b/circ/circulation.pl index 2cd85b6dad..61065c726d 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -269,6 +269,7 @@ if ($patron) { $template->param( 'userdebarred' => $patron->debarred, 'debarredcomment' => $patron->debarredcomment, + 'debarredsince' => $patron->restrictions->search()->single->created, ); if ( $patron->debarred ne "9999-12-31" ) { diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc index db9c3430fc..19ba6cee80 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc @@ -58,7 +58,7 @@ [% IF ( userdebarred ) %]
  • - Restricted: Patron's account is restricted + Restricted since [% debarredsince | $KohaDates %]: Patron's account is restricted [% IF ( userdebarreddate ) %] until [% userdebarreddate | $KohaDates %] diff --git a/members/moremember.pl b/members/moremember.pl index 767b1a783b..bf422d7749 100755 --- a/members/moremember.pl +++ b/members/moremember.pl @@ -87,6 +87,7 @@ if ( $patron->is_debarred ) { $template->param( 'userdebarred' => $patron->debarred, 'debarredcomment' => $patron->debarredcomment, + 'debarredsince' => $patron->restrictions->search()->single->created, ); if ( $patron->debarred ne "9999-12-31" ) {