From bb0eb08bcf2dff8bd51b513db23641b8a098cb3a Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Thu, 13 Jan 2022 16:43:00 -0500 Subject: [PATCH] LP#1929749: tweak applying upload template When in fetch import parameters mode, don't try to apply the provider or fiscal year from the template. Signed-off-by: Galen Charlton --- Open-ILS/src/eg2/src/app/staff/acq/picklist/upload.component.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/staff/acq/picklist/upload.component.ts b/Open-ILS/src/eg2/src/app/staff/acq/picklist/upload.component.ts index 0f6ba1321a..b35b886dd7 100644 --- a/Open-ILS/src/eg2/src/app/staff/acq/picklist/upload.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/acq/picklist/upload.component.ts @@ -594,8 +594,12 @@ export class UploadComponent implements OnInit, AfterViewInit, OnDestroy { this.bibSourceSelector.applyEntryId(this.selectedBibSource); this.matchSetSelector.applyEntryId(this.selectedMatchSet); - this.providerSelector.selectedId = this.selectedProvider; - this.fiscalYearSelector.applyEntryId(this.selectedFiscalYear); + if (this.providerSelector) { + this.providerSelector.selectedId = this.selectedProvider; + } + if (this.fiscalYearSelector) { + this.fiscalYearSelector.applyEntryId(this.selectedFiscalYear); + } this.mergeProfileSelector.applyEntryId(this.selectedMergeProfile); this.fallThruMergeProfileSelector.applyEntryId(this.selectedFallThruMergeProfile); } -- 2.11.0