Correct the sql query for filtering distribution sets by tags (#511)

* Also checks if collection is empty, while building predicate

Signed-off-by: Melanie Retter <melanie.retter@bosch-si.com>

* ID of distribution tag buttons should not contain whitespaces

Signed-off-by: Melanie Retter <melanie.retter@bosch-si.com>
This commit is contained in:
Melanie Retter
2017-05-15 18:59:46 +02:00
committed by Kai Zimmermann
parent 1661f66006
commit a59110d147
2 changed files with 4 additions and 2 deletions

View File

@@ -27,6 +27,7 @@ import org.eclipse.hawkbit.ui.utils.SPUILabelDefinitions;
import org.eclipse.hawkbit.ui.utils.UIComponentIdProvider;
import org.eclipse.hawkbit.ui.utils.UINotification;
import org.eclipse.hawkbit.ui.utils.VaadinMessageSource;
import org.springframework.util.StringUtils;
import org.vaadin.addons.lazyquerycontainer.BeanQueryFactory;
import org.vaadin.addons.lazyquerycontainer.LazyQueryContainer;
import org.vaadin.spring.events.EventBus.UIEventBus;
@@ -94,7 +95,7 @@ public class DistributionTagButtons extends AbstractFilterButtons implements Ref
@Override
protected String createButtonId(final String name) {
return name;
return StringUtils.trimAllWhitespace(name);
}
@Override