stable

Clone or download

Read-only

feat: Do not be able to modify mirrored milestones links in the artifact UI

This is part of request #30358 Mirrored milestones link cannot be delete in the Tuleap UI In order to prevent wrong deletion of artifact links that handle the mirror of programs, we have to prevent users to delete this kind of artifact links in the Web UI. This patch removes the delete checkboxes for ```_mirrored_milestone``` links and the ability to update the type of these links. How to test ----------- * Go to an artifact with at least one artifact link of type ```_mirrored_milestone``` * Switch the artifact link in edit mode => There is no checkboxes to delete the link of type ```_mirrored_milestone``` in the Type pane => There is no checkboxes to delete the link of type ```_mirrored_milestone``` in the tracker pane and the type selectbox must be disabled. Note: Artifact modal will be handled in a dedicated commit. Change-Id: I73d595e7dacea20d4dce0acd385c7c5349335228

Modified Files

Name
M plugins/program_management/include/program_managementPlugin.php +9 −0 Go to diff View file
A plugins/tracker/include/Tracker/FormElement/Field/ArtifactLink/DisplayArtifactLinkEvent.php +53 −0 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Field/ArtifactLink/Type/TypeSelectorPresenter.php +1 −1 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Field/ArtifactLink/Type/TypeSelectorRenderer.php +2 −1 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Field/ArtifactLink/Type/TypeTablePresenter.php +12 −4 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_ArtifactLink.php +12 −2 Go to diff View file
M plugins/tracker/include/Tracker/Report/Tracker_Report_Renderer_Table.class.php +30 −4 Go to diff View file
M plugins/tracker/templates/artifactlink-type-selector.mustache +1 −1 Go to diff View file
M plugins/tracker/templates/artifactlink-type-table-head.mustache +2 −2 Go to diff View file
M plugins/tracker/templates/artifactlink-type-table-row.mustache +2 −2 Go to diff View file