From d60b0a2e4d3359c127f1e801db9e35dd217f8790 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Sat, 15 Sep 2018 11:02:05 -0700 Subject: [PATCH] Bug 21353: Display checkboxes to merge patron even if cannot manage lists MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit When permission 'manage_patron_lists' is off, there is no checkbox on /cgi-bin/koha/members/member.pl to merge patrons. Test plan: Remove permission manage_patron_lists Add permission edit_borrowers Search for patrons => Without this patch you will not be able to select patrons to merge (checkboxes are not displayed) Signed-off-by: Séverine QUEUNE Signed-off-by: Katrin Fischer Signed-off-by: Nick Clemens --- koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt | 6 +++--- .../prog/en/modules/members/tables/members_results.tt | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt index a5a5c009be..74d4501080 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt @@ -92,7 +92,7 @@ - [% IF CAN_user_tools_manage_patron_lists %] + [% IF CAN_user_borrowers_edit_borrowers || CAN_user_tools_manage_patron_lists %] [% END %] @@ -400,7 +400,7 @@ // Apply DataTables on the results table var columns_settings = [% ColumnsSettings.GetColumns( 'members', 'member', 'memberresultst', 'json' ) | $raw %]; - [% UNLESS CAN_user_tools_manage_patron_lists %] + [% UNLESS CAN_user_borrowers_edit_borrowers OR CAN_user_tools_manage_patron_lists %] [%# Remove the first column if we do not display the checkbox %] columns_settings.splice(0, 1); [% END %] @@ -462,7 +462,7 @@ }); }, 'aoColumns':[ - [% IF CAN_user_tools_manage_patron_lists %] + [% IF CAN_user_borrowers_edit_borrowers || CAN_user_tools_manage_patron_lists %] { 'mDataProp': 'dt_borrowernumber', 'bSortable': false }, [% END %] { 'mDataProp': 'dt_cardnumber' }, diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/tables/members_results.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/tables/members_results.tt index 6799c31032..066ada1708 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/tables/members_results.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/tables/members_results.tt @@ -10,7 +10,7 @@ "aaData": [ [% FOREACH data IN aaData %] { - [% IF CAN_user_tools_manage_patron_lists %] + [% IF CAN_user_borrowers_edit_borrowers || CAN_user_tools_manage_patron_lists %] "dt_borrowernumber": "", [% END %] -- 2.39.5
 Card