cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r158046 - cocoon/blocks/supported/portal/trunk/java/org/apache/cocoon/portal/layout/impl/CopletLayout.java
Date Fri, 18 Mar 2005 09:46:23 GMT
Author: cziegeler
Date: Fri Mar 18 01:46:21 2005
New Revision: 158046

URL: http://svn.apache.org/viewcvs?view=rev&rev=158046
Log:
Bugfix: the layout id shouldn't be changed if available

Modified:
    cocoon/blocks/supported/portal/trunk/java/org/apache/cocoon/portal/layout/impl/CopletLayout.java

Modified: cocoon/blocks/supported/portal/trunk/java/org/apache/cocoon/portal/layout/impl/CopletLayout.java
URL: http://svn.apache.org/viewcvs/cocoon/blocks/supported/portal/trunk/java/org/apache/cocoon/portal/layout/impl/CopletLayout.java?view=diff&r1=158045&r2=158046
==============================================================================
--- cocoon/blocks/supported/portal/trunk/java/org/apache/cocoon/portal/layout/impl/CopletLayout.java
(original)
+++ cocoon/blocks/supported/portal/trunk/java/org/apache/cocoon/portal/layout/impl/CopletLayout.java
Fri Mar 18 01:46:21 2005
@@ -34,8 +34,7 @@
     
     public void setCopletInstanceData(CopletInstanceData cid) {
         this.copletInstanceData = cid;
-        String id = cid.getId();
-        if (id != null) {
+        if ( this.getId() == null ) {
             this.setId(cid.getId());
         }
     }



Mime
View raw message