Skip to content
Snippets Groups Projects
Commit 6c080f2f authored by juanf's avatar juanf
Browse files

SSDM-516: Search Filter bugfix.

SVN: 32085
parent 60eab91d
No related branches found
No related tags found
No related merge requests found
...@@ -776,6 +776,18 @@ function SampleTable(serverFacade, sampleTableId, profile, sampleTypeCode, inspe ...@@ -776,6 +776,18 @@ function SampleTable(serverFacade, sampleTableId, profile, sampleTypeCode, inspe
} }
if(this.sampleTypeCode === "SEARCH") { if(this.sampleTypeCode === "SEARCH") {
//Fix for not populated field, (not shown samples)
if(!this.samples[i]["PROPERTIES_JSON"]) {
var propertiesString = "";
for(propertyKey in this.samples[i].properties) {
if(propertiesString.length > 0) {
propertiesString += " , ";
}
propertiesString += "<b>" + propertyKey + "</b> : " + this.samples[i].properties[propertyKey];
}
this.samples[i]["PROPERTIES_JSON"] = propertiesString;
}
filterValueTokensPassed[j] = this.samples[i].sampleTypeCode.toLowerCase().indexOf(filterValueTokens[j]) !== -1 || filterValueTokensPassed[j] = this.samples[i].sampleTypeCode.toLowerCase().indexOf(filterValueTokens[j]) !== -1 ||
this.samples[i].code.toLowerCase().indexOf(filterValueTokens[j]) !== -1 || this.samples[i].code.toLowerCase().indexOf(filterValueTokens[j]) !== -1 ||
this.samples[i]["PROPERTIES_JSON"].toLowerCase().indexOf(filterValueTokens[j]) !== -1; this.samples[i]["PROPERTIES_JSON"].toLowerCase().indexOf(filterValueTokens[j]) !== -1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment