From 3d7757654b829c500a5e404c2d45d91a73cef3a3 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Wed, 2 Feb 2022 17:10:36 -0300 Subject: [PATCH] Bug 29570: Enable sorting orders by summary This patch enables (on receiving) sorting orders by the summary column. It needs the previous patches to work. Title is given more precedence as expressed by users on the bug report. Which, by the way, makes sense. To test: 1. Create a basket 2. Create orders 3. Close basket 4. Receive shipment 5. Enter invoice information => SUCCESS: You should see your pending orders => FAIL: Verify the 'Summary' column is not sortable 7. Apply this patches 8. Restart Plack 9. Reload the page => SUCCESS: Can sort by the summary column 10. Sign off :-D Signed-off-by: Tomas Cohen Arazi Signed-off-by: Lucas Gass Signed-off-by: Jonathan Druart Signed-off-by: Fridolin Somers --- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt index 09b7238793..02ef881c06 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt @@ -437,7 +437,7 @@ } }, { - [% SET summary_fields = "biblio.author:biblio.title:biblio.isbn:biblio.publisher:me.internal_note:me.vendor_note" %] + [% SET summary_fields = "biblio.title:biblio.author:biblio.isbn:biblio.publisher:me.internal_note:me.vendor_note" %] [% IF Koha.Preference('marcflavour')=='UNIMARC' %][% SET summary_fields = summary_fields _ ":biblio.ean" %][% END %] "data": "[% summary_fields | html %]", "render": function(data, type, row, meta) { @@ -514,7 +514,7 @@ return result; }, - "orderable": false, + "orderable": true, }, { "data": "", -- 2.39.2