Fix für Publizierenprozess: ContentBundle wird jetzt ebenfalls republiziert.
git-svn-id: https://svn.libreccm.org/ccm/trunk@1536 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
79cf36996a
commit
291e6bbe68
|
|
@ -184,6 +184,7 @@ import java.util.Set;
|
|||
* @author Jack Chung
|
||||
* @author Michael Pih
|
||||
* @author Stanislav Freidin <sfreidin@redhat.com>
|
||||
* @author Jens Pelzetter
|
||||
*
|
||||
* @version $Id: ContentItem.java 2218 2011-06-22 23:55:36Z pboy $
|
||||
*/
|
||||
|
|
@ -440,7 +441,8 @@ public class ContentItem extends VersionedACSObject implements CustomCopy {
|
|||
}
|
||||
}
|
||||
|
||||
/* *
|
||||
/*
|
||||
* *
|
||||
* removed cg - object observer sets context based on parent whenever parent
|
||||
* is updated
|
||||
*
|
||||
|
|
@ -616,7 +618,9 @@ public class ContentItem extends VersionedACSObject implements CustomCopy {
|
|||
* The item's root is the ancestor reachable through repeated
|
||||
* <code>getParent()</code> calls whose parent is
|
||||
* <code>null</code>. This is usually a folder, but may be any
|
||||
* {@see com.arsdigita.kernel.ACSObject}.
|
||||
* {
|
||||
*
|
||||
* @see com.arsdigita.kernel.ACSObject}.
|
||||
*
|
||||
* Note that the name of the root folder of the content section where the
|
||||
* item resides is not included in the path.
|
||||
|
|
@ -1881,9 +1885,13 @@ public class ContentItem extends VersionedACSObject implements CustomCopy {
|
|||
ContentBundle bundle = (ContentBundle) parent;
|
||||
ContentBundle liveBundle = (ContentBundle) bundle.
|
||||
getPublicVersion();
|
||||
if (liveBundle == null) {
|
||||
//jensp 2012-03-07 Changes to the ContentBundle were not
|
||||
//published because the ContentBundle was not republished.
|
||||
//Moved the next lines out of the if below to enable
|
||||
//republishing of the ContentBundle
|
||||
liveBundle =
|
||||
(ContentBundle) bundle.createPendingVersion(null);
|
||||
if (liveBundle == null) {
|
||||
} else {
|
||||
Set liveCatSet = new HashSet();
|
||||
Set draftCatSet = new HashSet();
|
||||
|
|
@ -2197,8 +2205,8 @@ public class ContentItem extends VersionedACSObject implements CustomCopy {
|
|||
* {@link #getExtraXMLGenerators()}. But beware: The page state passed to
|
||||
* generators returned by this method will may be null. </p>
|
||||
*
|
||||
* @return A list of all extra XML Generators for lists views of
|
||||
* this content item.
|
||||
* @return A list of all extra XML Generators for lists views of this
|
||||
* content item.
|
||||
*/
|
||||
public List<ExtraXMLGenerator> getExtraListXMLGenerators() {
|
||||
return new ArrayList<ExtraXMLGenerator>();
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@ import com.arsdigita.bebop.form.Submit;
|
|||
import com.arsdigita.cms.CMS;
|
||||
import com.arsdigita.cms.CMSConfig;
|
||||
import com.arsdigita.cms.ContentItem;
|
||||
import com.arsdigita.cms.ContentPage;
|
||||
import com.arsdigita.cms.ContentSection;
|
||||
import com.arsdigita.cms.SecurityManager;
|
||||
import com.arsdigita.cms.Workspace;
|
||||
|
|
|
|||
Loading…
Reference in New Issue