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

SSDM-5274 : Bugfix, deleting always first storage position instead of correct one

SVN: 38489
parent b55d26e7
No related branches found
No related tags found
No related merge requests found
...@@ -239,7 +239,7 @@ function StorageListView(storageListController, storageListModel) { ...@@ -239,7 +239,7 @@ function StorageListView(storageListController, storageListModel) {
//Remove //Remove
var allChildren = this._storageListModel.sample.children; var allChildren = this._storageListModel.sample.children;
for(var i = 0; i < allChildren.length; i++) { for(var i = 0; i < allChildren.length; i++) {
if(allChildren[i].permId === child.permId) { if(allChildren[i].code === child.code) {
allChildren.splice(i,1); allChildren.splice(i,1);
} }
} }
......
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