From: Galen Charlton Date: Mon, 10 Feb 2020 16:18:45 +0000 (-0500) Subject: fix comparison of IDs when prepping args for picklist merge X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d3e542efc4afcc3378de9a0a4fef0f1728108bd5;p=working%2FEvergreen.git fix comparison of IDs when prepping args for picklist merge The API expects the lead to _not_ be on the list of IDs of lists to merge into the lead. Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/eg2/src/app/staff/acq/search/picklist-merge-dialog.component.ts b/Open-ILS/src/eg2/src/app/staff/acq/search/picklist-merge-dialog.component.ts index a7d7643d59..dca24cffda 100644 --- a/Open-ILS/src/eg2/src/app/staff/acq/search/picklist-merge-dialog.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/acq/search/picklist-merge-dialog.component.ts @@ -48,7 +48,7 @@ export class PicklistMergeDialogComponent 'open-ils.acq', 'open-ils.acq.picklist.merge', this.auth.token(), this.leadList, - this.selectedLists.map( list => list.id() ).filter(function(p) { return p !== that.leadList; }) + this.selectedLists.map( list => list.id() ).filter(function(p) { return Number(p) !== Number(that.leadList); }) ).subscribe( (res) => { if (this.evt.parse(res)) {