Filter: switching off a custom condition does not affect filtered records #PL-5186

This commit is contained in:
Maxim Gorbunkov 2015-04-03 07:07:15 +00:00
parent 4128bb936a
commit fa71f8bef4

View File

@ -31,6 +31,7 @@ import com.haulmont.cuba.gui.data.impl.DatasourceImplementation;
import com.haulmont.cuba.gui.theme.ThemeConstants;
import com.haulmont.cuba.gui.theme.ThemeConstantsManager;
import com.haulmont.cuba.gui.xml.layout.ComponentsFactory;
import org.apache.commons.lang.BooleanUtils;
import org.apache.commons.lang.ObjectUtils;
import org.apache.commons.lang.StringUtils;
import org.dom4j.Element;
@ -344,6 +345,7 @@ public class Param {
field.addListener(new ValueListener() {
@Override
public void valueChanged(Object source, String property, @Nullable Object prevValue, @Nullable Object value) {
value = BooleanUtils.isTrue((Boolean) value) ? true : null;
_setValue(value, valueProperty);
}
});