always pass through the state of the 'active' field on the search form
authorGalen Charlton <gmc@equinoxinitiative.org>
Wed, 8 Apr 2020 21:52:09 +0000 (17:52 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Wed, 8 Apr 2020 21:52:09 +0000 (17:52 -0400)
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/eg2/src/app/staff/acq/provider/acq-provider-search-form.component.ts

index 38e5a94..9f0b522 100644 (file)
@@ -103,9 +103,7 @@ export class AcqProviderSearchFormComponent implements OnInit, AfterViewInit {
         if (this.providerURL) {
             searchTerms.push({ classes: ['acqpro'], fields: ['url'], op: 'ilike', value: this.providerURL });
         }
-        if (this.providerIsActive) {
-            searchTerms.push({ classes: ['acqpro'], fields: ['active'], op: '=', value: (this.providerIsActive ? 't' : 'f') });
-        }
+        searchTerms.push({ classes: ['acqpro'], fields: ['active'], op: '=', value: (this.providerIsActive ? 't' : 'f') });
 
         // tossing setTimeout here to ensure that the
         // grid data source is fully initialized