diff --git a/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/client/web/ProcessPublishWeb.java b/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/client/web/ProcessPublishWeb.java index 5269dd9c..24fbfabb 100644 --- a/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/client/web/ProcessPublishWeb.java +++ b/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/client/web/ProcessPublishWeb.java @@ -2403,15 +2403,18 @@ public class ProcessPublishWeb extends ActionWeb { wsId = team.getWsId(); } List orglist = dao.getPublishedRepositoryList(wsId); - List list1 = new ArrayList(); + List vsersionIdList = new ArrayList(); for (PALRepositoryModel palRepositoryModel : orglist) { String versionId = palRepositoryModel.getVersionId(); List temp = PALRepositoryCache.getByVersionId(wsId,versionId); for (PALRepositoryModel repositoryModel : temp) { if(!repositoryModel.isPublish()&&!repositoryModel.isStop()) { - - list1.add(palRepositoryModel); + if(!vsersionIdList.contains(versionId)) { + list1.add(palRepositoryModel); + vsersionIdList.add(versionId); + + } } } } @@ -2450,8 +2453,8 @@ public class ProcessPublishWeb extends ActionWeb { String versionId = parseObject.getString("versionId"); String sql = "SELECT PLNAME FROM APP_ACT_COE_PAL_REPOSITORY WHERE PLVERSIONID = '"+versionId+"' and ISPUBLISH = '0' and ISSTOP = '0' "; String newName = DBSql.getString(sql); - parseObject.remove("name"); - parseObject.put("name", newName); + parseObject.replace("name", newName); + parseObject.replace("isParent", "true"); } treeData2.add(parseObject); }