CCM NG/ccm-cms: Some bugfixes
git-svn-id: https://svn.libreccm.org/ccm/ccm_ng@4704 8810af33-2d31-482b-a856-94f89814c4dfccm-docs
parent
d47d36b21e
commit
a8ffa958e6
|
|
@ -882,6 +882,8 @@ public class ContentItemManager {
|
|||
liveItem.setLifecycle(lifecycle);
|
||||
liveItem.setWorkflow(draftItem.getWorkflow());
|
||||
|
||||
contentItemRepo.save(liveItem);
|
||||
|
||||
final List<Category> oldCategories = liveItem
|
||||
.getCategories()
|
||||
.stream()
|
||||
|
|
@ -895,11 +897,15 @@ public class ContentItemManager {
|
|||
}
|
||||
});
|
||||
|
||||
contentItemRepo.save(liveItem);
|
||||
|
||||
draftItem.getCategories().forEach(categorization -> categoryManager
|
||||
.addObjectToCategory(liveItem,
|
||||
categorization.getCategory(),
|
||||
categorization.getType()));
|
||||
|
||||
contentItemRepo.save(liveItem);
|
||||
|
||||
for (int i = 0; i < draftItem.getAttachments().size(); i++) {
|
||||
final AttachmentList sourceList = draftItem.getAttachments().get(i);
|
||||
|
||||
|
|
@ -969,9 +975,8 @@ public class ContentItemManager {
|
|||
}
|
||||
}
|
||||
|
||||
// for (AttachmentList attachmentList : item.getAttachments()) {
|
||||
// copyAttachmentList(attachmentList, liveItem);
|
||||
// }
|
||||
contentItemRepo.save(liveItem);
|
||||
|
||||
final BeanInfo beanInfo;
|
||||
try {
|
||||
beanInfo = Introspector.getBeanInfo(item.getClass());
|
||||
|
|
|
|||
|
|
@ -682,7 +682,7 @@
|
|||
<ccm_core.categorizations categorization_id="-30110"
|
||||
category_id="-2300"
|
||||
object_id="-10110"
|
||||
category_order="2"
|
||||
category_order="1"
|
||||
object_order="1"
|
||||
category_index="false"
|
||||
type="folder" />
|
||||
|
|
|
|||
|
|
@ -676,7 +676,7 @@
|
|||
<ccm_core.categorizations categorization_id="-30500"
|
||||
category_id="-2120"
|
||||
object_id="-10500"
|
||||
category_order="2"
|
||||
category_order="1"
|
||||
object_order="1"
|
||||
category_index="false"
|
||||
type="folder" />
|
||||
|
|
|
|||
|
|
@ -647,7 +647,7 @@
|
|||
<ccm_core.categorizations categorization_id="-30100"
|
||||
category_id="-2110"
|
||||
object_id="-10100"
|
||||
category_order="2"
|
||||
category_order="1"
|
||||
object_order="1"
|
||||
category_index="false"
|
||||
type="folder" />
|
||||
|
|
|
|||
|
|
@ -566,7 +566,7 @@
|
|||
<ccm_core.categorizations categorization_id="-30100"
|
||||
category_id="-2300"
|
||||
object_id="-10100"
|
||||
category_order="2"
|
||||
category_order="1"
|
||||
object_order="1"
|
||||
category_index="false"
|
||||
type="folder" />
|
||||
|
|
|
|||
|
|
@ -567,7 +567,7 @@
|
|||
<ccm_core.categorizations categorization_id="-30100"
|
||||
category_id="-2120"
|
||||
object_id="-10100"
|
||||
category_order="2"
|
||||
category_order="1"
|
||||
object_order="1"
|
||||
category_index="false"
|
||||
type="folder" />
|
||||
|
|
|
|||
Loading…
Reference in New Issue