IDEMPIERE-4647 Plugin Manager improvement (#528)

Fix index out of bounds error - when selecting a plugin and then filtering for a number of items lower than the selected index
This commit is contained in:
Carlos Ruiz 2021-01-15 19:03:23 +01:00 committed by GitHub
parent e3c78d7501
commit efc3d98313
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -302,8 +302,10 @@ public class WPluginManager extends ADForm implements EventListener<Event> {
processPlugin();
else if (Events.ON_CLICK.equals(event.getName()) && event.getTarget() == btnRefresh)
refreshAll();
else if (Events.ON_CHANGE.equals(event.getName()) && event.getTarget() == fFilter)
else if (Events.ON_CHANGE.equals(event.getName()) && event.getTarget() == fFilter) {
pluginsTable.setSelectedIndex(-1);
refreshAll();
}
}
}