LP#1721145 - fix Patron Message tab grids missing persist-keys
authorCesar Velez <cesar.velez@equinoxinitiative.org>
Thu, 5 Oct 2017 14:58:00 +0000 (10:58 -0400)
committerMike Rylander <mrylander@gmail.com>
Tue, 17 Oct 2017 17:43:32 +0000 (13:43 -0400)
In order to store grid column config preferences locally, a persist-key
attribute needs to be declared for the grid. Thus, for this UI a
'circ.patron.staff_messages' and a 'circ.patron.archived_messages'
persist-keys were added.

Signed-off by: Cesar Velez <cesar.velez@equinoxinitiative.org>

Signed-off-by: Mike Rylander <mrylander@gmail.com>

Open-ILS/src/templates/staff/circ/patron/t_messages.tt2

index d02988f..b28712b 100644 (file)
@@ -4,7 +4,8 @@
 <eg-grid
   idl-class="ausp"
   grid-controls="activeGridControls"
-  dateformat="{{$root.egDateAndTimeFormat}}">
+  dateformat="{{$root.egDateAndTimeFormat}}"
+  persist-key="circ.patron.staff_messages">
 
   <eg-grid-menu-item handler="createPenalty"
     label="[% l('Apply Penalty / Message') %]"></eg-grid-menu-item>
@@ -44,7 +45,8 @@
 <eg-grid
   idl-class="ausp"
   grid-controls="archiveGridControls"
-  dateformat="{{$root.egDateAndTimeFormat}}">
+  dateformat="{{$root.egDateAndTimeFormat}}"
+  persist-key="circ.patron.archived_messages">
 
   <eg-grid-field path="set_date" label="[% l('Applied On') %]" datatype="timestamp"></eg-grid-field>
   <eg-grid-field path="standing_penalty.label"></eg-grid-field>