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

SSDM-11348 : Bugfix on special requests for orders and organization units

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