Skip to content
Snippets Groups Projects
Commit a949b64e authored by Fuentes Serna  Juan Mariano (ID SIS)'s avatar Fuentes Serna Juan Mariano (ID SIS)
Browse files

SSDM-6016 : ELN Storage - storage position form should show storage link as name

parent 4593c221
No related branches found
No related tags found
No related merge requests found
......@@ -76,6 +76,18 @@ function SampleFormView(sampleFormController, sampleFormModel) {
var nameLabel = this._sampleFormModel.sample.properties[profile.propertyReplacingCode];
if(nameLabel) {
nameLabel = html.sanitize(nameLabel);
} else if(this._sampleFormModel.sample.sampleTypeCode === "STORAGE_POSITION") {
var properties = this._sampleFormModel.sample.properties;
var storagePropertyGroup = profile.getStoragePropertyGroup();
var boxProperty = properties[storagePropertyGroup.boxProperty];
if(!boxProperty) {
boxProperty = "NoBox";
}
var positionProperty = properties[storagePropertyGroup.positionProperty];
if(!positionProperty) {
positionProperty = "NoPos";
}
nameLabel = boxProperty + " : " + positionProperty;
} else {
nameLabel = this._sampleFormModel.sample.code;
}
......
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