LP1888723 Sort new-volum holding orgs alphabetically
authorBill Erickson <berickxx@gmail.com>
Tue, 9 Feb 2021 20:04:38 +0000 (15:04 -0500)
committerBill Erickson <berickxx@gmail.com>
Tue, 9 Feb 2021 20:04:40 +0000 (15:04 -0500)
When adding new call numbers to newly represented org units in the
volcopy holdings grid, ensure newly added org units are sorted
alphabetically by the org unit shortname.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/staff/cat/volcopy/vol-edit.component.ts

index 12668bf..4fb93a1 100644 (file)
@@ -126,6 +126,7 @@ export class VolEditComponent implements OnInit {
         if (!org) { return; }
         const orgNode = this.context.findOrCreateOrgNode(org.id());
         this.createVols(orgNode, 1);
+        this.context.sortHoldings();
     }
 
     // This only removes copies that were created during the