Bug 148747 Design become invalid when I extend a masterpage from Library
The attachment contains a report file and a library file. Reproduce: 1. Deploy the library("lib"), and open the report. 2. Drag Masterpage("page1") from "lib" to report. 3. Reopen the report, it become invalid.
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/writer/ModuleWriter.java
boundColumnsMgr.dealExtendedItem( obj, getModule( ) );
		writer.startElement( DesignSchemaConstants.EXTENDED_ITEM_TAG );
		attribute( obj, DesignSchemaConstants.EXTENSION_NAME_ATTRIB,
				ExtendedItem.EXTENSION_NAME_PROP );
		super.visitExtendedItem( obj );
		
		ExtensionElementDefn extDefn = obj.getExtDefn( );
		if ( extDefn != null )
		{
			
			List list = extDefn.getLocalProperties( );
			for ( int i = 0; i < list.size( ); i++ )
			{
				PropertyDefn prop = (PropertyDefn) list.get( i );
				if ( ExtendedItem.EXTENSION_NAME_PROP.equals( prop.getName( ) ) )
					continue;
				
				
				
				
				
				if ( prop.getTypeCode( ) != PropertyType.XML_TYPE )
					writeProperty( obj, getTagByPropertyType( prop ), prop
							.getName( ), false );
				else
					writeProperty( obj, getTagByPropertyType( prop ), prop
							.getName( ), true );
			}
		}