diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/server/ServerFacade.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/server/ServerFacade.js index 1613783b368ab423353392f005659deb41d4197d..4f792823e08c42ef84feec074522bc4ffcb232aa 100644 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/server/ServerFacade.js +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/server/ServerFacade.js @@ -501,7 +501,12 @@ function ServerFacade(openbisServer) { if(sampleToSend.id !== -1) { //Is V1 Sample listDataSetsForV1Sample(sampleToSend); } else { //Ask for a V1 Sample - this.searchWithUniqueId(sampleToSend.permId, function(sampleList) { + this.searchSamplesV1({ + "samplePermId" : sampleToSend.permId, + "withProperties" : true, + "withParents" : true, + "withChildren" : true + }, function(sampleList) { listDataSetsForV1Sample(sampleList[0]); }); } @@ -1545,8 +1550,17 @@ function ServerFacade(openbisServer) { } // Attributes - if(sampleIdentifier || samplePermId) { - throw "Unexpected operation exception : v1 search by sampleIdentifier removed"; + if(sampleIdentifier) { + throw "Unexpected operation exception : v1 search by sampleIdentifier and samplePermId removed"; + } + + if(samplePermId) { + matchClauses.push({ + "@type":"AttributeMatchClause", + fieldType : "ATTRIBUTE", + attribute : "PERM_ID", + desiredValue : samplePermId + }); } if(sampleCode) {