[Koha-bugs] [Bug 18370] Columns settings patrons>id=memberresultst : display bug
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu May 11 14:18:12 CEST 2017
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18370
--- Comment #10 from Julian Maurice <julian.maurice at biblibre.com> ---
Comment on attachment 61870
--> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=61870
Bug 18370: Columns visibility on patron search - Hide the correct column
Review of attachment 61870:
--> (https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=18370&attachment=61870)
-----------------------------------------------------------------
::: koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt
@@ +163,5 @@
> // Apply DataTables on the results table
> var columns_settings = [% ColumnsSettings.GetColumns( 'members', 'member', 'memberresultst', 'json' ) %];
> + [% UNLESS CAN_user_tools_manage_patron_lists %]
> + [%# Remove the first column if we do not display the checkbox %]
> + columns_settings = columns_settings.slice(1, -1);
slice(1, -1) removes the first and the last elements of the array
slice(1) is what you want.
An even better solution is to use Array.splice, because it modifies directly
the array (and it's faster)
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list