PL-8586 IllegalStateException when refreshing datasource if DataGrid SelectionMode is NONE

This commit is contained in:
Gleb Gorelov 2017-02-03 11:40:07 +04:00
parent 0daaf5b88c
commit 68ebe2f2ce

View File

@ -899,6 +899,10 @@ public class WebDataGrid<E extends Entity> extends WebAbstractComponent<CubaGrid
@Override
public void setSelected(@Nullable E item) {
if (getSelectionMode().equals(SelectionMode.NONE)) {
return;
}
if (item == null) {
component.deselectAll();
} else {