You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by cz...@apache.org on 2003/07/30 12:24:44 UTC
cvs commit: cocoon-2.0/src/java/org/apache/cocoon/webapps/portal/components PortalManager.java
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 (hartmut.zimmermann@basf-it-services.com)
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 {