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:[EMAIL PROTECTED]";>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:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to