mirror of
https://gitee.com/jmix/cuba.git
synced 2024-11-30 18:27:56 +08:00
The mask for the field with valueMode="masked" isn't saved to DB #PL-6021
This commit is contained in:
parent
b0936c0aca
commit
63c5031d3c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user