Bug 177296 Redundant Values are added to parameter list in preview mode.[0705]
Description: Redundant Values are added to parameter list in preview mode. Build number:2.2.0.v20070312 Steps to reproduce: 1. Open attached report. 2. Preview. 3. Select datetime value and click OK. 4. Click Show Report Parameters button, check values Expected result: Values are unchanged and only one datetime value in list. Actual result: Two same datetime values in list.
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/actionhandler/BirtGetCascadeParameterActionHandler.java
Iterator iList = list.iterator( );
			int index = 0;
			while ( iList != null && iList.hasNext( ) )
			{
				ParameterSelectionChoice item = (ParameterSelectionChoice) iList
						.next( );
				if ( item == null )
					continue;
				Object value = item.getValue( );
				if ( value == null )
					continue;
				
				try
				{
					value = DataUtil.convert( value, parameter.getDataType( ) );
				}
				catch ( Exception e )
				{
				}
				
				String displayValue = DataUtil.getDisplayValue( value );
				if ( displayValue == null )
					continue;
				String label = item.getLabel( );
				if ( label == null || label.length( ) <= 0 )
				{
					
					
					label = ParameterValidationUtil.getDisplayValue( null,
							parameter.getPattern( ), value, attrBean