From: Galen Charlton Date: Sun, 15 Aug 2021 15:27:41 +0000 (-0400) Subject: LP#1905068: (follow-up) never initialize an OU ID to 1 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f34ae95caa667d5ee557c241e10ac8eaac13b517;p=evergreen%2Fpines.git LP#1905068: (follow-up) never initialize an OU ID to 1 This change has no effect on behavior, as defaultOuId's initialization value always gets replaced with the user's WS OU or the org root when the contructor is run, but avoids any implication during code-reading that the top of the OU tree can be assumed to have ID 1. Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/eg2/src/app/staff/admin/local/course-reserves/course-list.component.ts b/Open-ILS/src/eg2/src/app/staff/admin/local/course-reserves/course-list.component.ts index 5884c8a619..3c6a3e65c4 100644 --- a/Open-ILS/src/eg2/src/app/staff/admin/local/course-reserves/course-list.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/admin/local/course-reserves/course-list.component.ts @@ -48,7 +48,7 @@ export class CourseListComponent implements OnInit, AfterViewInit { grid_source: GridDataSource = new GridDataSource(); currentMaterials: any[] = []; search_value = ''; - defaultOuId = 1; + defaultOuId: number; searchOrgs: OrgFamily; defaultTerm: IdlObject;