@@ -, +, @@ description --- admin/restrictions.pl | 2 +- .../data/mysql/en/mandatory/patron_restrictions.yml | 4 ++-- .../prog/en/includes/borrower_debarments.inc | 12 +++--------- .../prog/en/includes/patron_restrictions.inc | 10 ++++++++++ .../prog/en/modules/admin/restrictions.tt | 13 +++++++------ 5 files changed, 23 insertions(+), 18 deletions(-) create mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/patron_restrictions.inc --- a/admin/restrictions.pl +++ a/admin/restrictions.pl @@ -67,8 +67,8 @@ if ( $op eq 'add_form') { }; } else { my $restriction = Koha::RestrictionTypes->find($code); + $restriction->display_text($display_text); unless ($restriction->is_system) { - $restriction->display_text($display_text); $restriction->can_be_added_manually($can_be_added_manually); } $restriction->store; --- a/installer/data/mysql/en/mandatory/patron_restrictions.yml +++ a/installer/data/mysql/en/mandatory/patron_restrictions.yml @@ -22,7 +22,7 @@ description: tables: - debarment_types: - translatable: [ display_text ] + translatable: [] multiline: [] rows: - code: "MANUAL" @@ -47,4 +47,4 @@ tables: display_text: "Discharge" is_system: 1 default: 0 - can_be_added_manually: 0 + can_be_added_manually: 0 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/borrower_debarments.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/borrower_debarments.inc @@ -1,5 +1,6 @@ [% USE raw %] [% USE Koha %] +[% PROCESS 'patron_restrictions.inc' %]
Patron is currently unrestricted.
@@ -21,14 +22,7 @@ [% dtype = d.type %]Are you sure you want to delete "[% restriction.display_text | html %]"
+Are you sure you want to delete "[% PROCESS restriction_type_description %]"