cziegeler    2003/07/30 03:24:44

  Modified:    src/java/org/apache/cocoon/webapps/portal/components
                        PortalManager.java
  Log:
  Applying patch for the "double-click" bug from Hartmut Zimmermann ([EMAIL PROTECTED])
  
  Revision  Changes    Path
  1.2       +13 -3     
cocoon-2.0/src/java/org/apache/cocoon/webapps/portal/components/PortalManager.java
  
  Index: PortalManager.java
  ===================================================================
  RCS file: 
/home/cvs/cocoon-2.0/src/java/org/apache/cocoon/webapps/portal/components/PortalManager.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- PortalManager.java        9 Mar 2003 00:03:37 -0000       1.1
  +++ PortalManager.java        30 Jul 2003 10:24:44 -0000      1.2
  @@ -937,11 +937,21 @@
                   // LOAD COPLETS
                   List[] copletContents;
   
  -                copletContents = 
(List[])context.getAttribute(PortalConstants.ATTRIBUTE_COPLET_REPOSITORY);
  -                if (copletContents == null) {
  +                List[] temp = 
(List[])context.getAttribute(PortalConstants.ATTRIBUTE_COPLET_REPOSITORY);
  +                if (temp != null) {
  +                    copletContents = new List[temp.length];
  +                    for (int i = 0; i < temp.length; i++) {
  +                        if (temp[i] == null) {
  +                            copletContents[i] = null;
  +                        } else {
  +                            copletContents[i] = new ArrayList(temp[i]);
  +                        }
  +                    }
  +                } else {
                       copletContents = new List[PortalConstants.MAX_COLUMNS+2];
                       
context.setAttribute(PortalConstants.ATTRIBUTE_COPLET_REPOSITORY, copletContents);
                   }
  +
                   if (copletContents[0] == null) {
                       copletContents[0] = new ArrayList(1);
                   } else {
  
  
  

Reply via email to