From: Galen Charlton Date: Thu, 13 Jan 2022 21:43:00 +0000 (-0500) Subject: LP#1929749: tweak applying upload template X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=bb0eb08bcf2dff8bd51b513db23641b8a098cb3a;p=working%2FEvergreen.git 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 --- 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); }