CCM NG/ccm-cms: Some bugfixes
git-svn-id: https://svn.libreccm.org/ccm/ccm_ng@4704 8810af33-2d31-482b-a856-94f89814c4df
Former-commit-id: 2c7f064e4f
pull/2/head
parent
568e324a48
commit
697414851c
|
|
@ -881,6 +881,8 @@ public class ContentItemManager {
|
||||||
|
|
||||||
liveItem.setLifecycle(lifecycle);
|
liveItem.setLifecycle(lifecycle);
|
||||||
liveItem.setWorkflow(draftItem.getWorkflow());
|
liveItem.setWorkflow(draftItem.getWorkflow());
|
||||||
|
|
||||||
|
contentItemRepo.save(liveItem);
|
||||||
|
|
||||||
final List<Category> oldCategories = liveItem
|
final List<Category> oldCategories = liveItem
|
||||||
.getCategories()
|
.getCategories()
|
||||||
|
|
@ -894,12 +896,16 @@ public class ContentItemManager {
|
||||||
throw new RuntimeException(ex);
|
throw new RuntimeException(ex);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
contentItemRepo.save(liveItem);
|
||||||
|
|
||||||
draftItem.getCategories().forEach(categorization -> categoryManager
|
draftItem.getCategories().forEach(categorization -> categoryManager
|
||||||
.addObjectToCategory(liveItem,
|
.addObjectToCategory(liveItem,
|
||||||
categorization.getCategory(),
|
categorization.getCategory(),
|
||||||
categorization.getType()));
|
categorization.getType()));
|
||||||
|
|
||||||
|
contentItemRepo.save(liveItem);
|
||||||
|
|
||||||
for (int i = 0; i < draftItem.getAttachments().size(); i++) {
|
for (int i = 0; i < draftItem.getAttachments().size(); i++) {
|
||||||
final AttachmentList sourceList = draftItem.getAttachments().get(i);
|
final AttachmentList sourceList = draftItem.getAttachments().get(i);
|
||||||
|
|
||||||
|
|
@ -968,10 +974,9 @@ public class ContentItemManager {
|
||||||
entityManager.merge(targetList);
|
entityManager.merge(targetList);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
contentItemRepo.save(liveItem);
|
||||||
|
|
||||||
// for (AttachmentList attachmentList : item.getAttachments()) {
|
|
||||||
// copyAttachmentList(attachmentList, liveItem);
|
|
||||||
// }
|
|
||||||
final BeanInfo beanInfo;
|
final BeanInfo beanInfo;
|
||||||
try {
|
try {
|
||||||
beanInfo = Introspector.getBeanInfo(item.getClass());
|
beanInfo = Introspector.getBeanInfo(item.getClass());
|
||||||
|
|
|
||||||
|
|
@ -682,7 +682,7 @@
|
||||||
<ccm_core.categorizations categorization_id="-30110"
|
<ccm_core.categorizations categorization_id="-30110"
|
||||||
category_id="-2300"
|
category_id="-2300"
|
||||||
object_id="-10110"
|
object_id="-10110"
|
||||||
category_order="2"
|
category_order="1"
|
||||||
object_order="1"
|
object_order="1"
|
||||||
category_index="false"
|
category_index="false"
|
||||||
type="folder" />
|
type="folder" />
|
||||||
|
|
|
||||||
|
|
@ -676,7 +676,7 @@
|
||||||
<ccm_core.categorizations categorization_id="-30500"
|
<ccm_core.categorizations categorization_id="-30500"
|
||||||
category_id="-2120"
|
category_id="-2120"
|
||||||
object_id="-10500"
|
object_id="-10500"
|
||||||
category_order="2"
|
category_order="1"
|
||||||
object_order="1"
|
object_order="1"
|
||||||
category_index="false"
|
category_index="false"
|
||||||
type="folder" />
|
type="folder" />
|
||||||
|
|
|
||||||
|
|
@ -647,7 +647,7 @@
|
||||||
<ccm_core.categorizations categorization_id="-30100"
|
<ccm_core.categorizations categorization_id="-30100"
|
||||||
category_id="-2110"
|
category_id="-2110"
|
||||||
object_id="-10100"
|
object_id="-10100"
|
||||||
category_order="2"
|
category_order="1"
|
||||||
object_order="1"
|
object_order="1"
|
||||||
category_index="false"
|
category_index="false"
|
||||||
type="folder" />
|
type="folder" />
|
||||||
|
|
|
||||||
|
|
@ -566,7 +566,7 @@
|
||||||
<ccm_core.categorizations categorization_id="-30100"
|
<ccm_core.categorizations categorization_id="-30100"
|
||||||
category_id="-2300"
|
category_id="-2300"
|
||||||
object_id="-10100"
|
object_id="-10100"
|
||||||
category_order="2"
|
category_order="1"
|
||||||
object_order="1"
|
object_order="1"
|
||||||
category_index="false"
|
category_index="false"
|
||||||
type="folder" />
|
type="folder" />
|
||||||
|
|
|
||||||
|
|
@ -567,7 +567,7 @@
|
||||||
<ccm_core.categorizations categorization_id="-30100"
|
<ccm_core.categorizations categorization_id="-30100"
|
||||||
category_id="-2120"
|
category_id="-2120"
|
||||||
object_id="-10100"
|
object_id="-10100"
|
||||||
category_order="2"
|
category_order="1"
|
||||||
object_order="1"
|
object_order="1"
|
||||||
category_index="false"
|
category_index="false"
|
||||||
type="folder" />
|
type="folder" />
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue