Bug 148761 Unable to copy a report item from template to report
Steps: 1. Create a template, add a Text item "t1" or others 2. Create template item using "t1" 3. Double click the template item and we get a report item again. 4. We copy the item, paste to another report file. Expected: the text item can be copied. Actual result: Nothing happened, not copied and no error msg.
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/command/TemplateCommand.java
if ( ( element instanceof ReportItem || element instanceof TemplateReportItem )
				&& DesignElement.REF_TEMPLATE_PARAMETER_PROP.equals( prop
						.getName( ) ) )
		{
			assert value instanceof ElementRefValue;
			if ( ( (ElementRefValue) value ).getElement( ) == null )
			{
				
				
				
				
				
				
				TemplateParameterDefinition templateParam = resolveTemplateParameterDefinition(
						module, ( (ElementRefValue) value ).getName( ) );
				if ( !( templateParam.getDefaultElement( ) instanceof ReportItem ) )
					throw new PropertyValueException(
							element,
							prop.getName( ),
							value,
							PropertyValueException.DESIGN_EXCEPTION_INVALID_VALUE );
			}
		}
		if ( ( element instanceof SimpleDataSet || element instanceof TemplateDataSet )
				&& DesignElement.REF_TEMPLATE_PARAMETER_PROP.equals( prop
						.getName( ) ) )
		{
			assert value instanceof ElementRefValue;
			if ( ( (ElementRefValue) value ).getElement( ) == null )
			{