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 --- .../local/search-filter/query-dialog.component.ts | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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 f1d1776..534ef7a 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(); -- 1.7.2.5