LP1722383 - Sorting Fix Attempt 3 user/slink/LP1722383_web_client_workstation_dropdowns_are_not_alphabetical
authorSam Link <slink@LIBPC002>
Tue, 7 Aug 2018 16:22:40 +0000 (12:22 -0400)
committerSam Link <slink@LIBPC002>
Tue, 7 Aug 2018 16:22:40 +0000 (12:22 -0400)
Modified the two relevant templates (t_workstations.tt2 and t_login.tt2)
to again find a sorting solution for the workstation names.

Open-ILS/src/templates/staff/admin/workstation/t_workstations.tt2
Open-ILS/src/templates/staff/t_login.tt2

index ef551d5..9fa52b2 100644 (file)
@@ -47,7 +47,7 @@
   <div class="row">
     <div class="col-md-6">
       <select class="form-control" ng-model="selectedWS">
-        <option ng-repeat="ws in workstations | orderBy: 'ws'" value="{{ws}}"
+        <option ng-repeat="ws in workstations | orderBy: 'ws.name'" value="{{ws}}"
           ng-selected="ws == selectedWS">
           {{get_ws_label(ws)}}
         </option>
index fcd22f8..0b59d32 100644 (file)
@@ -34,7 +34,7 @@
                 for="login-workstation">[% l('Workstation') %]</label>
               <div class="col-md-8">
                 <select class="form-control" ng-model="args.workstation"
-                  ng-options="ws for ws in workstations | orderBy: 'ws'">
+                  ng-options="ws for ws in workstations | orderBy: 'ws.name'">
                   <option>[% l('Select Workstation') %]</option>
                 </select>
               </div>