Browse Source

REPORT-87768 fix:考虑另存为

release/11.0
Carlson 2 years ago
parent
commit
e34a0c78ae
  1. 2
      designer-base/src/main/java/com/fr/design/mainframe/JTemplate.java

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

@ -330,7 +330,7 @@ public abstract class JTemplate<T extends BaseBook, U extends BaseUndoState<?>>
* 为另存的模板创建新的模板id
*/
private void generateNewTemplateIdForSaveAs() {
if (StringUtils.isEmpty(template.getTemplateID())) {
if (StringUtils.isEmpty(template.getTemplateID()) || this.getEditingFILE().exists()) {
generateTemplateId();
}
}

Loading…
Cancel
Save