stable

Clone or download

Read-only

request #9591: Show attachment directly in the changeset

When a user add files to an artifact, it would be great to directly download the files from the changeset and not have to go back in the attachment field and retrieve the added files. Furthermore, if attachment is an image users should have a preview. Deleted attachment should not be downloadable via changesets though. Change-Id: Ifdba4927730a01e20fb327d049f71b6272063817

Modified Files

Name
M plugins/tracker/include/Tracker/Artifact/Tracker_Artifact_Changeset.class.php +1 −1 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Tracker_Artifact_ChangesetValue.class.php +11 −11 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Tracker_Artifact_ChangesetValue_ArtifactLink.class.php +3 −11 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Tracker_Artifact_ChangesetValue_Date.class.php +5 −12 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Tracker_Artifact_ChangesetValue_File.class.php +79 −29 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Tracker_Artifact_ChangesetValue_List.class.php +3 −10 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Tracker_Artifact_ChangesetValue_Numeric.class.php +3 −10 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Tracker_Artifact_ChangesetValue_PermissionsOnArtifact.class.php +3 −10 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Tracker_Artifact_ChangesetValue_Text.class.php +3 −11 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_ArtifactLink.class.php +1 −0 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_Computed.class.php +1 −1 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_Date.class.php +1 −1 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_File.class.php +9 −6 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_Float.class.php +1 −1 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_Integer.class.php +1 −1 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_LastUpdateDate.class.php +1 −1 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_List.class.php +1 −1 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_OpenList.class.php +1 −1 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_PermissionsOnArtifact.class.php +1 −1 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_String.class.php +1 −0 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_SubmittedOn.class.php +4 −4 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_Text.class.php +1 −1 Go to diff View file
M plugins/tracker/site-content/en_US/tracker.tab +2 −0 Go to diff View file
M plugins/tracker/site-content/fr_FR/tracker.tab +2 −0 Go to diff View file
M plugins/tracker/tests/Artifact/XMLExportTest.php +8 −7 Go to diff View file
M plugins/tracker/tests/ChangesetValueComputedTest.php +16 −14 Go to diff View file
M plugins/tracker/tests/Tracker/XML/Exporter/ArtifactAttachmentExporterTest.php +3 −3 Go to diff View file
M plugins/tracker/tests/Tracker/XML/Exporter/ChangesetValue/ChangesetValueComputedXMLExporterTest.php +5 −4 Go to diff View file
M plugins/tracker/tests/Tracker/XML/Exporter/ChangesetValueXMLExporterVisitorTest.php +5 −3 Go to diff View file
M plugins/tracker/tests/Tracker/XML/Exporter/ChangesetValuesXMLExporterTest.php +4 −2 Go to diff View file
M plugins/tracker/tests/Tracker/XML/Exporter/ChangesetXMLExporterTest.php +4 −2 Go to diff View file
M plugins/tracker/tests/Tracker_ArtifactTest.php +2 −2 Go to diff View file
M plugins/tracker/tests/Tracker_Artifact_ChangesetValue_ArtifactLinkTest.php +1 −1 Go to diff View file
M plugins/tracker/tests/Tracker_Artifact_ChangesetValue_DateTest.php +9 −7 Go to diff View file
M plugins/tracker/tests/Tracker_Artifact_ChangesetValue_FileTest.php +20 −12 Go to diff View file
M plugins/tracker/tests/Tracker_Artifact_ChangesetValue_FloatTest.php +16 −14 Go to diff View file
M plugins/tracker/tests/Tracker_Artifact_ChangesetValue_IntegerTest.php +10 −8 Go to diff View file
M plugins/tracker/tests/Tracker_Artifact_ChangesetValue_ListTest.php +20 −18 Go to diff View file
M plugins/tracker/tests/Tracker_Artifact_ChangesetValue_OpenListTest.php +13 −11 Go to diff View file
M plugins/tracker/tests/Tracker_Artifact_ChangesetValue_StringTest.php +1 −1 Go to diff View file
M plugins/tracker/tests/Tracker_Artifact_ChangesetValue_TextTest.php +10 −6 Go to diff View file
M plugins/tracker/tests/Tracker_FormElement_Field_ArtifactLinkTest.php +7 −2 Go to diff View file
M plugins/tracker/tests/Tracker_FormElement_Field_DateTest.php +1 −1 Go to diff View file
M plugins/tracker/tests/Tracker_FormElement_Field_FileTest.php +2 −2 Go to diff View file
M plugins/tracker/tests/Tracker_FormElement_Field_FloatTest.php +1 −1 Go to diff View file
M plugins/tracker/tests/Tracker_FormElement_Field_IntegerTest.php +1 −1 Go to diff View file
M plugins/tracker/tests/Tracker_FormElement_Field_ListTest.php +2 −2 Go to diff View file
M plugins/tracker/tests/Tracker_FormElement_Field_OpenListTest.php +5 −4 Go to diff View file
M plugins/tracker/tests/Tracker_FormElement_Field_SelectboxTest.php +1 −1 Go to diff View file
M plugins/tracker/tests/Tracker_FormElement_Field_TextTest.php +1 −1 Go to diff View file
M plugins/tracker/tests/builders/aChangesetValue.php +3 −3 Go to diff View file