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
private HashMap pages = new HashMap();
	/**
	 * constructor
	 * 
	 * @param context
	 *            the executor context
	 * @param emitter
	 *            the report emitter
	 * 
	 */
	public ReportExecutor( ExecutionContext context )
	{
		this.context = context;
		this.report = context.getReport( );
		this.manager = new ExecutorManager( this );
		this.uniqueId = 0;
	}
	public IReportContent execute( )
	{
		reportContent = new ReportContent( report );
		context.setReportContent( reportContent );
		TOCTree tocTree = new TOCTree( );
		reportContent.setTOCTree( tocTree );
		TOCBuilder tocBuilder = new TOCBuilder( tocTree );
		context.setTOCBuilder( tocBuilder );
		
		Map appContext = context.getAppContext( );
		context.getDataEngine( ).prepare( report, appContext );