IDEMPIERE-4658 The operator Dropdown entries for a foreign ID column is corrupted when a search preset is loaded in any window's Advanced Search tab. (#538)

This commit is contained in:
Carlos Ruiz 2021-01-20 14:46:35 +01:00 committed by GitHub
parent 24ccb86f16
commit d81935a128
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -1224,6 +1224,7 @@ public class FindWindow extends Window implements EventListener<Event>, ValueCha
boolean selected = false;
listColumn.appendItem("","");
ListItem liCol = null;
for (int i = 0; i < cols.length; i++)
{
ValueNamePair item = cols[i];
@ -1232,7 +1233,7 @@ public class FindWindow extends Window implements EventListener<Event>, ValueCha
{
listColumn.setSelectedItem(li);
selected = true;
break;
liCol = li;
}
}
if(!selected) listColumn.setSelectedIndex(0);
@ -1246,10 +1247,12 @@ public class FindWindow extends Window implements EventListener<Event>, ValueCha
{
listOperator.setSelectedItem(li);
selected = true;
break;
}
}
if(!selected) listOperator.setSelectedIndex(0);
if (liCol != null)
addOperators(liCol, listOperator);
}
} // setValues