stable

Clone or download

Read-only

request #14246 Trackers renderers widgets can't be imported through XML

Renderer ids are now exported in XML. This reference can be used in tracker_renderer widget to import this widget. This is the only tracker widget importable for now. Example of XML content: <widget name="plugin_tracker_projectrenderer"> <preference name="renderer"> <reference name="id" REF="R1"></reference> <value name="title">Imported</value> </preference> </widget> Change-Id: I03f460afa9bed2655d6a165b24c9ad3e47acf000

Modified Files

Name
M plugins/tracker/include/Tracker/Report/Tracker_ReportFactory.class.php +15 −4 Go to diff View file
M plugins/tracker/include/Tracker/Report/Tracker_Report_Renderer.class.php +6 −0 Go to diff View file
A plugins/tracker/include/Tracker/Widget/ProjectRendererWidgetXMLImporter.php +97 −0 Go to diff View file
M plugins/tracker/include/TrackerXmlImport.class.php +17 −1 Go to diff View file
M plugins/tracker/include/trackerPlugin.php +10 −0 Go to diff View file
A plugins/tracker/phpunit/Tracker/Report/Tracker_ReportFactoryTest.php +117 −0 Go to diff View file
A plugins/tracker/phpunit/Tracker/Report/_fixtures/TestTracker-1.xml +353 −0 Go to diff View file
A plugins/tracker/phpunit/Tracker/Report/_fixtures/tracker_with_renderer_id.xml +353 −0 Go to diff View file
A plugins/tracker/phpunit/Tracker/Widget/ProjectRendererWidgetXMLImporterTest.php +185 −0 Go to diff View file
D plugins/tracker/tests/Tracker_ReportFactoryTest.php +0 −80 Go to diff View file
M plugins/tracker/www/resources/tracker-definition.rnc +1 −0 Go to diff View file
M plugins/tracker/www/resources/tracker-definition.rng +5 −0 Go to diff View file
M src/common/xml/resources/project/tracker-definition.rng +5 −0 Go to diff View file