From 7cf600179599e3a6f72bf29bef2c9d28b2cb64f2 Mon Sep 17 00:00:00 2001 From: Kyle Huckins Date: Wed, 17 Mar 2021 19:48:44 +0000 Subject: [PATCH] LP#1844169: Compare query position against string Compare queryPosition against '0' rather than int 0, avoiding Angular issues during build process Signed-off-by: Kyle Huckins Signed-off-by: Terran McCanna Signed-off-by: Galen Charlton --- .../src/app/staff/admin/local/search-filter/query-dialog.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/eg2/src/app/staff/admin/local/search-filter/query-dialog.component.ts b/Open-ILS/src/eg2/src/app/staff/admin/local/search-filter/query-dialog.component.ts index f1d1776cc3..534ef7af62 100644 --- a/Open-ILS/src/eg2/src/app/staff/admin/local/search-filter/query-dialog.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/admin/local/search-filter/query-dialog.component.ts @@ -52,7 +52,7 @@ export class QueryDialogComponent extends DialogComponent implements OnInit { } save() { - if (!this.newQueryLabel || (!this.newQueryPosition && (this.newQueryPosition != 0)) || !this.newQueryText) { + if (!this.newQueryLabel || (!this.newQueryPosition && (this.newQueryPosition != '0')) || !this.newQueryText) { this.closeAndReset({notFilledOut: true}); } const recToSave = this.prepareRecord(); -- 2.11.0