From f34ae95caa667d5ee557c241e10ac8eaac13b517 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Sun, 15 Aug 2021 11:27:41 -0400 Subject: [PATCH] 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 --- .../src/app/staff/admin/local/course-reserves/course-list.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.11.0