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:
parent
24ccb86f16
commit
d81935a128
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue