Bug 213804 [Automation][Regression]Table of contents does not work correcly
Description: Add a table of content tag on a grid which is in page 2 in a report, but when I click the TOC tag it redirects to page 1. Test Date: 20071224 Test Build: BIRT2.3.0 Daily Build: v20071224-0800 Step to reproduce: 1. Use the report attached 2. Preview it in web viewer 3. Click the TOC Expect result: TOC should link to the grid in page 2. Actual result: TOC redirects to page 1.
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/ReportExecutor.java
context.optimizeExecution( );
		
		currentItem = 0;
		return reportContent;
	}
	public void close( )
	{
		uniqueId = 0;
	}
	int currentItem;
	public IReportItemExecutor getNextChild( )
	{
		if ( hasNextChild( ) )
		{
			ReportItemDesign design = report.getContent( currentItem++ );
			ReportItemExecutor executor = manager.createExecutor( null, design );
			return executor;
		}
		return null;
	}
	public boolean hasNextChild( )
	{
		if ( currentItem < report.getContentCount( ) )
		{
			return true;
		}
		return false;
	}
	public ExecutionContext getContext( )