Browse Source

搜索问题

bugfix/10.0
XiaXiang 6 years ago
parent
commit
392c191804
  1. 2
      designer-base/src/main/java/com/fr/design/mainframe/vcs/common/VcsHelper.java

2
designer-base/src/main/java/com/fr/design/mainframe/vcs/common/VcsHelper.java

@ -141,7 +141,7 @@ public class VcsHelper implements JTemplateActionListener {
} else { } else {
operator.saveVersion(getCurrentUsername(), fileName, StringUtils.EMPTY, latestFileVersion + 1); operator.saveVersion(getCurrentUsername(), fileName, StringUtils.EMPTY, latestFileVersion + 1);
} }
VcsEntity oldEntity = WorkContext.getCurrent().get(VcsOperator.class).getFileVersionByIndex(fileName, 1); VcsEntity oldEntity = WorkContext.getCurrent().get(VcsOperator.class).getFileVersionByIndexAndUsername(fileName, getCurrentUsername(), 1);
if (needDeleteVersion(oldEntity)) { if (needDeleteVersion(oldEntity)) {
operator.deleteVersion(oldEntity.getFilename(), oldEntity.getVersion()); operator.deleteVersion(oldEntity.getFilename(), oldEntity.getVersion());
} }

Loading…
Cancel
Save