mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-03 19:57:36 +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);
|
maskedField.setDatasource(datasource, property);
|
||||||
if (xmlDescriptor != null) {
|
if (xmlDescriptor != null) {
|
||||||
maskedField.setMask(xmlDescriptor.attributeValue("mask"));
|
maskedField.setMask(xmlDescriptor.attributeValue("mask"));
|
||||||
|
|
||||||
|
String valueModeStr = xmlDescriptor.attributeValue("valueMode", MaskedField.ValueMode.CLEAR.getId());
|
||||||
|
maskedField.setValueMode(MaskedField.ValueMode.fromId(valueModeStr));
|
||||||
}
|
}
|
||||||
return maskedField;
|
return maskedField;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user