From 449522a38b5a5aa92f881e7914947ad164f023d8 Mon Sep 17 00:00:00 2001 From: VLE2FE Date: Mon, 10 Aug 2020 13:30:26 +0200 Subject: [PATCH] status fix for sample_references --- src/app/sample/sample.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/sample/sample.component.ts b/src/app/sample/sample.component.ts index d5a71b0..fea0e0d 100644 --- a/src/app/sample/sample.component.ts +++ b/src/app/sample/sample.component.ts @@ -486,7 +486,7 @@ export class SampleComponent implements OnInit, AfterContentChecked { return new Observable(observer => { if (value !== '') { this.api.get<{ _id: string, number: string }[]>( - '/samples?status=all&page-size=25&sort=number-asc&fields[]=number&fields[]=_id&' + + '/samples?status[]=validated&status[]=new&page-size=25&sort=number-asc&fields[]=number&fields[]=_id&' + 'filters[]=%7B%22mode%22%3A%22stringin%22%2C%22field%22%3A%22number%22%2C%22values%22%3A%5B%22' + value + '%22%5D%7D', data => { console.log(data); this.sampleReferenceAutocomplete[this.currentSRIndex] = data.map(e => e.number);