Skip to content
Snippets Groups Projects
Commit 35b14148 authored by Juan Fuentes's avatar Juan Fuentes
Browse files

SSDM-11348 : Improved way of adding parents

parent a511de9a
No related branches found
No related tags found
No related merge requests found
...@@ -464,11 +464,13 @@ function LinksView(linksController, linksModel) { ...@@ -464,11 +464,13 @@ function LinksView(linksController, linksModel) {
} }
if(sampleTypeCode === "REQUEST") { if(sampleTypeCode === "REQUEST") {
// This property is missing the $ because the search uses V1 instead of V3 // This property is missing the $ because the search uses V1 instead of V3
advancedSampleSearchCriteria.rules["2"] = { type : "Property", name : "PROP.$ORDERING.ORDER_STATUS", value : "NOT_YET_ORDERED" }; advancedSampleSearchCriteria.subCriteria.rules["1-3"] = { type : "Property", name : "PROP.$ORDERING.ORDER_STATUS", value : "NOT_YET_ORDERED" };
advancedSampleSearchCriteria.subCriteria.rules["2-3"] = { type : "Property", name : "PROP.$ORDERING.ORDER_STATUS", value : "NOT_YET_ORDERED" };
} }
if(sampleTypeCode === "ORGANIZATION_UNIT") { if(sampleTypeCode === "ORGANIZATION_UNIT") {
var spaceCode = mainController.currentView._sampleFormModel.sample.spaceCode; var spaceCode = mainController.currentView._sampleFormModel.sample.spaceCode;
advancedSampleSearchCriteria.rules["2"] = { type : "Attribute", name : "ATTR.SPACE", value : spaceCode }; advancedSampleSearchCriteria.subCriteria.rules["1-3"] = { type : "Attribute", name : "ATTR.SPACE", value : spaceCode };
advancedSampleSearchCriteria.subCriteria.rules["2-3"] = { type : "Attribute", name : "ATTR.SPACE", value : spaceCode };
} }
return advancedSampleSearchCriteria; return advancedSampleSearchCriteria;
}); });
......
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