|
@@ -102,16 +102,12 @@ public class ESignTemplateControllerBean extends AbstractESignTemplateController
|
|
|
ESignTemplateFileEntryCollection entrys = info.getEntrys();
|
|
ESignTemplateFileEntryCollection entrys = info.getEntrys();
|
|
|
for (int i = 0; i < entrys.size(); i++) {
|
|
for (int i = 0; i < entrys.size(); i++) {
|
|
|
ESignTemplateFileEntryInfo entryInfo = entrys.get(i);
|
|
ESignTemplateFileEntryInfo entryInfo = entrys.get(i);
|
|
|
- String entryId = entryInfo.getId().toString();
|
|
|
|
|
- ESignTemplateFileEntryFieldCollection fields = entryInfo.getFields();
|
|
|
|
|
- fields.clear();
|
|
|
|
|
- fields.addCollection(entryFieldCollectionMap.get(entryId));
|
|
|
|
|
-// for (int x = 0; x < oldFields.size(); x++) {
|
|
|
|
|
-// ESignTemplateFileEntryFieldInfo xInfo = oldFields.get(x);
|
|
|
|
|
-// if (!fields.contains(xInfo)) {
|
|
|
|
|
-// fields.add(xInfo);
|
|
|
|
|
-// }
|
|
|
|
|
-// }
|
|
|
|
|
|
|
+ if (entryInfo.getId() != null) {
|
|
|
|
|
+ String entryId = entryInfo.getId().toString();
|
|
|
|
|
+ ESignTemplateFileEntryFieldCollection fields = entryInfo.getFields();
|
|
|
|
|
+ fields.clear();
|
|
|
|
|
+ fields.addCollection(entryFieldCollectionMap.get(entryId));
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
super._update(ctx, pk, model);
|
|
super._update(ctx, pk, model);
|