Bug 155007 Group Toc doesn't work well
Group Toc doesn't work well Steps to reproduce: run the attached file and preview it in html/web viewer/PDF Expected results: Group toc works well Actual results: Group toc doesn't work well
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/data/dte/ReportQueryBuilder.java
IBaseTransform parentQuery = getTransform( );
			
			if ( parentQuery == null )
			{
				
				query = new QueryDefinition( getParentQuery( ) );
				this.queryIDs.put( query, String.valueOf( item.getID( ) ) );
				this.queries.add( query );	
				registerQueryAndElement( query, item );
			}
			else
			{
				
				String name = String.valueOf( item.getID( ) );
				query = new SubqueryDefinition( name, getParentQuery( ) );
				parentQuery.getSubqueries( ).add( query );
				
				this.queryIDs.put( query, String.valueOf( item.getID( ) ) );
				registerQueryAndElement( query, item );
				
				String currentCondition = getCurrentCondition( );
				
				if ( currentCondition.equals( String.valueOf( true ) ) )
				{
					( (SubqueryDefinition)query ).setApplyOnGroupFlag( true );
				}
				else
				{
					( (SubqueryDefinition)query ).setApplyOnGroupFlag( false );
				}