LP#1749475 Fix thinko in form argument for sort direction
authorDan Wells <dbw2@calvin.edu>
Thu, 21 Feb 2019 15:54:06 +0000 (10:54 -0500)
committerGalen Charlton <gmc@equinoxinitiative.org>
Mon, 14 Sep 2020 13:42:43 +0000 (09:42 -0400)
This variable is for the sort direction, so should be 'sort_dir', not
'sort_by' (which is named, in this context 'sort').

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>

Open-ILS/src/templates/opac/record/print_preview.tt2

index 8fc5839..28d17d6 100644 (file)
@@ -9,7 +9,7 @@
     <br class="clear-both" />
     <div id="content-wrapper" class="content-wrapper-record-page">
 
-    <form id="previewForm" action="[% mkurl('',{},['locg','format','sort','sort_by','context_org','bre_id','is_list']) %]">
+    <form id="previewForm" action="[% mkurl('',{},['locg','format','sort','sort_dir','context_org','bre_id','is_list']) %]">
         <input type="hidden" name="old_event" value="[% ctx.preview_record.id %]"/>
         <input type="hidden" name="bre_id" value="[% ctx.bre_id %]"/>
         <input type="hidden" name="locg" value="[% ctx.selected_print_email_loc %]"/>