Browse Source

Pull request #4356: REPORT-52824 10.0.16 模板另存不会生成新的模板id

Merge in DESIGN/design from ~HADES/design:final/10.0 to final/10.0

* commit 'd5d6925c5c4ffa1cf79fb49729a3f942b17f09c7':
  REPORT-52824 10.0.16 模板另存不会生成新的模板id
final/10.0
Kara 4 years ago
parent
commit
1158743e95
  1. 6
      designer-base/src/main/java/com/fr/design/mainframe/JTemplate.java

6
designer-base/src/main/java/com/fr/design/mainframe/JTemplate.java

@ -1465,10 +1465,8 @@ public abstract class JTemplate<T extends BaseBook, U extends BaseUndoState<?>>
editingFILE = fileChooser.getSelectedFILE();
}
// 在保存之前,初始化 templateID
if (StringUtils.isEmpty(this.template.getTemplateID())) {
generateTemplateId();
}
//收集和生成templateID 因为是另存为操作 无论怎么样都需要重新生成templateID
initForCollect();
FILE finalEditingFILE = editingFILE;
CallbackSaveWorker worker = new CallbackSaveWorker(new Callable<Boolean>() {

Loading…
Cancel
Save