LP1744386: Alphabetize stat cats in volcopy attr editor user/sandbergja/lp1744386_alphabetize_stat_cats_in_volcopy
authorJane Sandberg <sandbej@linnbenton.edu>
Sun, 20 May 2018 16:00:48 +0000 (09:00 -0700)
committerJane Sandberg <sandbej@linnbenton.edu>
Sun, 20 May 2018 16:00:48 +0000 (09:00 -0700)
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>
Open-ILS/src/templates/staff/cat/volcopy/t_attr_edit.tt2

index d1a692c..fae7412 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">