stable

Clone or download

Read-only

File url substitution for XML import of comments

Same behavior than for text fields[0] tus uploaded image should see their src attribute updated during XML import. Drag 'n drop (or copy image/paste) an image in a follow-up comment (in html mode). XML export the artifact/tracker/project[0] XML import the project => In the new project, the imported artifact has an image embedded in the comment and the url of this image is the one of the imported attachment. Part of story #13453: finish drag'n drop images in tracker text areas [0] see git #tuleap/stable/25e35c2469a6f028247c1d022e21fe8db2f6548b Change-Id: I78377a92f10657b11131ecbe9deeb72406677a76

Modified Files

Name
M plugins/tracker/include/Tracker/Action/CopyArtifact.class.php +10 −2 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Changeset/InitialChangesetCreatorBase.class.php +10 −5 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Changeset/NewChangesetCreatorBase.class.php +29 −7 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Tracker_Artifact.class.php +18 −2 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Tracker_ArtifactCreator.class.php +17 −5 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/XMLImport.class.php +48 −16 Go to diff View file
M plugins/tracker/include/TrackerXmlImport.class.php +7 −8 Go to diff View file
M plugins/tracker/phpunit/Tracker/Artifact/XmlImportTest.php +69 −39 Go to diff View file
M plugins/tracker/tests/Artifact/Changeset/InitialChangesetCreatorTest.php +9 −7 Go to diff View file
M plugins/tracker/tests/Artifact/Tracker_ArtifactCreatorTest.php +2 −1 Go to diff View file
M plugins/tracker/tests/Artifact/XMLImportTest.php +96 −49 Go to diff View file
M plugins/tracker/tests/Tracker/Action/CopyArtifactTest.php +7 −4 Go to diff View file
M plugins/tracker/tests/Tracker_ArtifactTest.php +35 −13 Go to diff View file
M plugins/tracker/tests/rest/XMLImportAndFileURLs/XMLImportAndFileURLsTest.php +28 −2 Go to diff View file
M plugins/tracker/tests/rest/_fixtures/XMLImportAndFileURLs/data/Artifact132 Binary file Go to diff View file
M plugins/tracker/tests/rest/_fixtures/XMLImportAndFileURLs/project.xml +27 −5 Go to diff View file