Bug 214065 [Regression]Group TOC are created automatically when preview in Web viewer and PDF
Description: [Regression]Group TOC are created automatically when preview in Web viewer and PDF Build number: 2.3.0.v200701012-1021 Steps to reproduce: 1, New a table binding with dataset 2, New a group on table and do not specify the group toc 3, Preview in Web viewer and PDF Expected result: No default TOC of group Actual result: Some empty group toc created automatically in preview Error log:
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/toc/TOCBuilder.java
public TOCEntry startEntry( TOCEntry parent, Object tocValue,
			String bookmark, String hiddenFormats, long elementId )
	{
		return startEntry( parent, tocValue, bookmark, hiddenFormats, false, elementId );
	}
	public TOCEntry startEntry( TOCEntry parent, Object tocValue,
			String bookmark, String hiddenFormats, boolean isGroupRoot, long elementId )
	{
		if ( parent == null )
		{
			parent = rootEntry;
		}
		TOCTreeNode parentNode = parent.node;
		TOCTreeNode node = new TOCTreeNode( );
		String id = parentNode.getNodeID( );
		if ( id == null )
		{
			id = TOC_PREFIX;
		}
		id = id + "_" + parentNode.getChildren( ).size( );
		String formats = mergeHideFormats( parent, hiddenFormats);
		node.setNodeID( id );
		node.setBookmark( bookmark == null ? id : bookmark );
		node.setParent( parentNode );
		node.setHideFormats( formats );
		node.setIsGroupRoot( isGroupRoot );
		if ( tocValue == null )
		{
			node.setTOCValue( EMPTY_TOC );
		}