LP724019 Sort offline org tree before during load user/berick/lp724019-continued
authorBill Erickson <berickxx@gmail.com>
Thu, 6 Aug 2020 22:04:50 +0000 (18:04 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 6 Aug 2020 22:05:25 +0000 (18:05 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/web/js/ui/default/staff/services/lovefield.js

index 683390a..0e7d2b3 100644 (file)
@@ -448,6 +448,11 @@ angular.module('egCoreMod')
                     }
                 });
 
+                if (type == 'aou') {
+                    // Sort the org tree before absorbing
+                    egCore.env.sort_aou(top);
+                }
+
                 egCore.env.absorbTree(top, type, true)
                 return $q.when(true)
             });