From: Kyle Huckins Date: Wed, 17 Mar 2021 19:48:44 +0000 (+0000) Subject: LP#1844169: Compare query position against string X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=7cf600179599e3a6f72bf29bef2c9d28b2cb64f2;p=Evergreen.git 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 --- 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();