LP1744386: Alphabetize stat cats in volcopy attr editor
authorJane Sandberg <sandbej@linnbenton.edu>
Wed, 17 Apr 2019 20:46:46 +0000 (16:46 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Thu, 23 May 2019 21:51:03 +0000 (17:51 -0400)
To test:
1. Go to the volume copy editor.  Confirm that the stat
cats do not display in order of owning library or stat cat
name.
2. Apply this commit.
3. Go to the volume copy editor.  Confirm that the stat
cats now display in alphabetical order by owning library,
then stat cat name.

Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Signed-off-by: Jason Etheridge <jason@EquinoxInitiative.org>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/templates/staff/cat/volcopy/t_attr_edit.tt2

index 7e58ebb..b0127fc 100644 (file)
 
             <div class="row pad-vert"></div>
 
-            <div class="row" ng-repeat="sc in statcats" ng-show="statcat_visible(sc.owner().id())">
+            <div class="row" ng-repeat="sc in statcats | orderBy:['owner().name()','name()']" ng-show="statcat_visible(sc.owner().id())">
                 <div class="col-xs-12">
                     <div class="row bg-info">
                         <div class="col-xs-12">