mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-04 12:17:41 +08:00
PL-8231 Exception when clicking System Info
This commit is contained in:
parent
77cdd85ed1
commit
ee97110c24
@ -52,7 +52,7 @@ public class EntityParamsDatasource extends CollectionDatasourceImpl<InfoParamEn
|
||||
}
|
||||
|
||||
protected void compileInfo() {
|
||||
if (instance instanceof BaseUuidEntity && !PersistenceHelper.isNew(instance)) {
|
||||
if (instance instanceof BaseGenericIdEntity && !PersistenceHelper.isNew(instance)) {
|
||||
instance = reloadInstance(instance);
|
||||
}
|
||||
|
||||
@ -127,27 +127,6 @@ public class EntityParamsDatasource extends CollectionDatasourceImpl<InfoParamEn
|
||||
protected Entity reloadInstance(Entity instance) {
|
||||
View reloadView = new View(instance.getMetaClass().getJavaClass(), true);
|
||||
|
||||
reloadView.addProperty("id");
|
||||
|
||||
if (instance instanceof Creatable) {
|
||||
reloadView.addProperty("createTs");
|
||||
reloadView.addProperty("createdBy");
|
||||
}
|
||||
|
||||
if (instance instanceof Versioned && ((Versioned) instance).getVersion() != null) {
|
||||
reloadView.addProperty("version");
|
||||
}
|
||||
|
||||
if (instance instanceof Updatable) {
|
||||
reloadView.addProperty("updateTs");
|
||||
reloadView.addProperty("updatedBy");
|
||||
}
|
||||
|
||||
if (instance instanceof SoftDelete) {
|
||||
reloadView.addProperty("deleteTs");
|
||||
reloadView.addProperty("deletedBy");
|
||||
}
|
||||
|
||||
LoadContext loadContext = new LoadContext(instance.getMetaClass());
|
||||
loadContext.setSoftDeletion(false);
|
||||
loadContext.setId(instance.getId());
|
||||
|
Loading…
Reference in New Issue
Block a user