The mask for the field with valueMode="masked" isn't saved to DB #PL-6021

This commit is contained in:
Gleb Gorelov 2015-10-02 13:18:59 +00:00
parent b0936c0aca
commit 63c5031d3c

View File

@ -144,6 +144,9 @@ public abstract class AbstractFieldFactory implements FieldFactory {
maskedField.setDatasource(datasource, property);
if (xmlDescriptor != null) {
maskedField.setMask(xmlDescriptor.attributeValue("mask"));
String valueModeStr = xmlDescriptor.attributeValue("valueMode", MaskedField.ValueMode.CLEAR.getId());
maskedField.setValueMode(MaskedField.ValueMode.fromId(valueModeStr));
}
return maskedField;
}