Serial Note Sort Fix
authorDan Wells <dbw2@calvin.edu>
Tue, 12 Jun 2012 13:03:31 +0000 (09:03 -0400)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Tue, 12 Jun 2012 16:37:06 +0000 (12:37 -0400)
Serial notes are currently sorting backwards from what is intended
(and what is expected based on other interfaces).  This was caused
by adding a sort to the middle-layer code which resulted in an
unwanted double reverse.

[whitespace adjustment by LFW per request of DBS]

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Open-ILS/xul/staff_client/server/serial/notes.xul

index 3866802..207b448 100644 (file)
                }
 
                function retrieve_notes() {
-                       g.notes = g.network.simple_request('FM_'+g.function_type+'_RETRIEVE_ALL',[ { 'authtoken' : ses(), 'object_id' : g.object_id } ]).reverse();
+                       g.notes = g.network.simple_request(
+                               'FM_' + g.function_type + '_RETRIEVE_ALL', [
+                                       { 'authtoken' : ses(), 'object_id' : g.object_id }
+                               ]
+                       );
                }
 
                function apply(node,field,value) {