Author: kevinshen
Date: 2010-02-02 09:09:11 +0100 (Tue, 02 Feb 2010)
New Revision: 40772

Modified:
   
CMSContainer/trunk/CMSContainer/cmsc/edit-webapp/src/java/com/finalist/cmsc/editwizard/WizardController.java
Log:
CMSC-1632 images not published with site.

Modified: 
CMSContainer/trunk/CMSContainer/cmsc/edit-webapp/src/java/com/finalist/cmsc/editwizard/WizardController.java
===================================================================
--- 
CMSContainer/trunk/CMSContainer/cmsc/edit-webapp/src/java/com/finalist/cmsc/editwizard/WizardController.java
        2010-02-01 19:06:21 UTC (rev 40771)
+++ 
CMSContainer/trunk/CMSContainer/cmsc/edit-webapp/src/java/com/finalist/cmsc/editwizard/WizardController.java
        2010-02-02 08:09:11 UTC (rev 40772)
@@ -344,15 +344,18 @@
                   if 
(PagesUtil.isPageType(editNode.getCloud().getNode(channelnr))) {
                      channelnr = RepositoryUtil.getRoot(editNode.getCloud());
                   }
+               }
+               else {
+                  channelnr = RepositoryUtil.getRoot(editNode.getCloud());
+                  //log.warn("AssetElement: Creationchannel was not found in 
session");
+               }
+               if (channelnr != null ) {
                   RepositoryUtil.addCreationChannel(editNode, channelnr);
                   AssetElementUtil.addOwner(editNode);
                   if (isMainWizard(ewconfig, wizardConfig)) {
                      RepositoryUtil.addAssetToChannel(editNode, channelnr);
                   }
                }
-               else {
-                  log.warn("AssetElement: Creationchannel was not found in 
session");
-               }
             }
          }
          else {

_______________________________________________
Cvs mailing list
Cvs@lists.mmbase.org
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to