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

SSDM-516: Bugfix.

SVN: 31790
parent 7a48d664
No related branches found
No related tags found
No related merge requests found
......@@ -224,9 +224,16 @@ function Storage(serverFacade, containerId, profile, sampleTypeCode, sample, isD
var propertyTypeCodes = [storageNamePropertyCode, storageRowPropertyCode, storageColPropertyCode, storageBoxPropertyCode];
var propertyValues = ["'" + selectedStorage + "'", "?*", "?*", "?*"];
//We don't show other user bench
var storageUserPropertyCode = this.selectedPropertyGroup["USER_PROPERTY"];
if(this.sample && this.sample.properties[storageUserPropertyCode] && this.sample.properties[storageUserPropertyCode] !== this.userId) {
this.selectedStorageCache = [];
this._repaint();
return;
}
//When saving on the Bench, only the stuff saved by the user putting it there is seen
if(selectedStorage.startsWith("USER_BENCH")) {
var storageUserPropertyCode = this.selectedPropertyGroup["USER_PROPERTY"];
propertyTypeCodes.push(storageUserPropertyCode);
var storageUserPropertyValue = this.userId;
propertyValues.push(storageUserPropertyValue);
......@@ -242,6 +249,7 @@ function Storage(serverFacade, containerId, profile, sampleTypeCode, sample, isD
.append(" Loading... ")
);
this.serverFacade.searchWithProperties(propertyTypeCodes, propertyValues,
function(samples) {
var boxes = []; //Rows
......
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