From d3e542efc4afcc3378de9a0a4fef0f1728108bd5 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Mon, 10 Feb 2020 11:18:45 -0500 Subject: [PATCH] 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 --- .../src/eg2/src/app/staff/acq/search/picklist-merge-dialog.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) { -- 2.11.0