Browse Source

REPORT-83604 模板内容所有类型的替换:单条替换会替换所有

release/11.0
Destiny.Lin 2 years ago
parent
commit
0178d770ad
  1. 2
      designer-realize/src/main/java/com/fr/design/actions/replace/ui/ITReplaceMainDialog.java

2
designer-realize/src/main/java/com/fr/design/actions/replace/ui/ITReplaceMainDialog.java

@ -254,7 +254,7 @@ public class ITReplaceMainDialog extends UIDialog {
public void replace(String searchStr, String replaceStr) {
HistoryTemplateListCache.getInstance().getCurrentEditingTemplate().fireTargetModified(true);
for (Info info : searchContentResultList) {
if (!info.getContent().isWrongful()) {
if (!info.getContent().isWrongful() && info.getContent().isSelected()) {
info.setValue(info, searchStr, replaceStr, info.getContent().getOperatorArray());
}
info.getContent().setReplaced(true);

Loading…
Cancel
Save