Bug 200478 Name of date/time group level issue[1101]
Description: Name of date/time group level issue[1101] Step: 1. New a sample datasource and dataset from orders. 2. New a data cube and binding to the dataset. 3. Drop the column of "ORDERDATE" to group and select the year type. At this time, the name of group level is "year(ORDERDATE: DateTime)" 4. Edit the the group level. 5. Change the type as month. Actual result: The name of group level is "year(ORDERDATE: DateTime, DateTime)" Expected result: The name of group level is "year(ORDERDATE: DateTime)"
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/command/PropertyCommand.java
if ( !( reportItem instanceof ListingElement ) ||
				!( targetElement instanceof ListingElement ) )
			return;
		if (!ModelUtil.isCompatibleDataBindingElements( element, targetElement ))
			return;
		ListingElement listing = (ListingElement) reportItem;
		List listingGroups = listing.getGroups( );
		ListingElement targetListing = (ListingElement) targetElement;
		List targetGroups = targetListing.getGroups( );
		int size = Math.min( listingGroups.size( ), targetGroups.size( ) );
		for ( int i = 0; i < size; i++ )
		{
			recoverReferredReportItem( (GroupElement) listingGroups.get( i ),
					(GroupElement) targetGroups.get( i ) );
		}
	}
	/**
	 * Localizes element properties from <code>targetElement</code> to
	 * <code>source</code>.
	 * 
	 */
	private void recoverReferredReportItem( DesignElement source,
			DesignElement targetElement ) throws SemanticException
	{
		Iterator propNames = null;
		if ( targetElement instanceof ReportItem )
		{
			propNames = ReportItemPropSearchStrategy.getDataBindingPropties( )
					.iterator( );
		}