You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by ha...@apache.org on 2001/11/23 12:09:53 UTC

cvs commit: xml-cocoon2/scratchpad/src/org/apache/cocoon/acting ModularDatabaseAction.java

haul        01/11/23 03:09:53

  Modified:    scratchpad/src/org/apache/cocoon/acting
                        ModularDatabaseAction.java
  Log:
  Forgot to enable references to table's @alias in table-sets
  
  Revision  Changes    Path
  1.2       +5 -2      xml-cocoon2/scratchpad/src/org/apache/cocoon/acting/ModularDatabaseAction.java
  
  Index: ModularDatabaseAction.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/scratchpad/src/org/apache/cocoon/acting/ModularDatabaseAction.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ModularDatabaseAction.java	2001/11/23 10:50:35	1.1
  +++ ModularDatabaseAction.java	2001/11/23 11:09:52	1.2
  @@ -86,7 +86,7 @@
    * components can utilize the helper components.
    *
    * @author <a href="mailto:haul@apache.org">Christian Haul</a>
  - * @version CVS $Revision: 1.1 $ $Date: 2001/11/23 10:50:35 $
  + * @version CVS $Revision: 1.2 $ $Date: 2001/11/23 11:09:52 $
    */
   public abstract class ModularDatabaseAction 
       extends AbstractDatabaseAction 
  @@ -571,7 +571,10 @@
   		modeTypes.put( MODE_OTHERS, "others" );
   	    };
   	    for (int i=0; i<tables.length; i++) {
  -		if (set_tables == null || set_tables.containsKey(tables[i].getAttribute("name"))) {
  +		if ( set_tables == null || 
  +		     set_tables.containsKey( tables[i].getAttribute( "name" ) ) ||
  +		     ( tables[i].getAttribute( "alias", null ) != null && set_tables.containsKey( tables[i].getAttribute( "alias" ) ) )
  +		    ) {
   		    if (tablesetname != null) {
   			modeTypes = (HashMap) set_tables.get(tables[i].getAttribute("name"));
   		    }
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org