Sfoglia il codice sorgente

#6174 JS Error when extending range with multi selection enabled table with nullselectallowed=false

svn changeset:16580/svn branch:6.5
tags/6.7.0.beta1
Artur Signell 13 anni fa
parent
commit
5ba6f99f89
1 ha cambiato i file con 6 aggiunte e 6 eliminazioni
  1. 6
    6
      src/com/vaadin/ui/Table.java

+ 6
- 6
src/com/vaadin/ui/Table.java Vedi File

@@ -1940,12 +1940,6 @@ public class Table extends AbstractSelect implements Action.Container,
}
}

if (!isNullSelectionAllowed() && newValue.size() < 1) {
// empty selection not allowed, keep old value
requestRepaint();
return;
}

/* Add range items aka shift clicked multiselection areas */
if (ranges != null) {
for (String range : ranges) {
@@ -1956,6 +1950,12 @@ public class Table extends AbstractSelect implements Action.Container,
}
}

if (!isNullSelectionAllowed() && newValue.size() < 1) {
// empty selection not allowed, keep old value
requestRepaint();
return;
}

setValue(newValue, true);

}

Loading…
Annulla
Salva