Merge "StringListPanel: Do not ignore empty values when adding new row"

This commit is contained in:
Edwin Kempin 2014-04-16 09:42:51 +00:00 committed by Gerrit Code Review
commit 0309802819

View File

@ -260,11 +260,8 @@ public class StringListPanel extends FlowPanel {
void add() {
List<String> values = new ArrayList<>();
for (NpTextBox input : inputs) {
String v = input.getValue().trim();
if (!v.isEmpty()) {
input.setValue("");
values.add(v);
}
values.add(input.getValue().trim());
input.setValue("");
}
insert(values);
}