stable

Clone or download

Read-only

Fix REST representation when manual value is 0

This is part of story #9090: have computed fields compatible with artifact links v2 How to test this: - Given a computed field where I had set the manual value to 0 (zero), when I GET the artifact then the field should not be "autocomputed" and its manual value should be 0, not null - Given a computed field that should compute to 0 (zero), when I edit this artifact in the trackers, then the field should display 0 (auto- computed) instead of Empty (auco-computed) Change-Id: I8ab79650e73c3fd3aa0465d8f51ea239cdfe2f4d

Modified Files

Name
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_Computed.class.php +5 −4 Go to diff View file
M plugins/tracker/tests/Tracker_FormElement_Field_ComputedTest.php +5 −4 Go to diff View file