stable

Clone or download

Read-only

Typehint and unwrap submitted_values array

For unknown reasons, submitted values data are wrapped in an array of one element. We should pass directly the array instead. This fix issue at artifact update when backend raises an error while you tus-uploaded a file. We should not loose the attachment. (See for fix at submit). Expected behavior: Initiate the update of an artifact. Drop an image in a text field. Remove the required attribute of a required field (e.g title). Submit. You get an error asking you to fill the title field. All other fields contains pre-filled submitted data. Obey. Submit. The artifact is updated. The text field contains the image. The file field contains the image as attachment. Part of story #12964: drag'n drop images in tracker text areas Change-Id: I0f34ceb520acca2ad557b2db346f28152de50299

Modified Files

Name
M plugins/agiledashboard/include/AgileDashboard/FormElement/Burnup.php +2 −1 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Renderer/ArtifactRenderer.class.php +3 −6 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Renderer/EditInPlaceRenderer.class.php +5 −5 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Renderer/EditOverlayRenderer.class.php +7 −2 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Renderer/ReadOnlyRenderer.class.php +3 −7 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Renderer/SubmitAbstractRenderer.class.php +1 −1 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/View/Edit.class.php +5 −1 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/DateFormatter.class.php +3 −4 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement.class.php +9 −7 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Container.class.php +16 −13 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Container_Column.class.php +27 −19 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Container_Column_Group.class.php +34 −25 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Container_Fieldset.class.php +7 −3 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field.class.php +38 −24 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_ArtifactId.class.php +14 −6 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_ArtifactLink.class.php +20 −11 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_Burndown.class.php +12 −6 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_Computed.class.php +11 −11 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_CrossReferences.class.php +9 −4 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_Date.class.php +13 −12 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_File.class.php +24 −9 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_LastModifiedBy.class.php +12 −6 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_LastUpdateDate.class.php +10 −4 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_List.class.php +32 −17 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_Numeric.class.php +12 −4 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_OpenList.class.php +13 −4 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_PermissionsOnArtifact.class.php +22 −24 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_Priority.class.php +9 −4 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_Selectbox.class.php +12 −11 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_String.class.php +7 −3 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_SubmittedBy.class.php +15 −7 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_SubmittedOn.class.php +14 −5 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_Text.class.php +15 −10 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_StaticField.class.php +9 −5 Go to diff View file
M plugins/tracker/include/Tracker/Tracker.class.php +7 −9 Go to diff View file
M plugins/tracker_encryption/include/Tracker_FormElement_Field_Encrypted.class.php +7 −8 Go to diff View file
M src/composer.json +5 −1 Go to diff View file
M src/composer.lock +22 −18 Go to diff View file