stable
Clone or download
Read-only
This is part of story #13569 define a default value for computed fields Now, in the REST representation, computed fields have the default value property like: "default_value": null or "default_value": { "type": "manual_value" "value": 5.2 / 0 } You can add by hand the default value in the database to check if all is correctly retrieved. Change-Id: Idc28f8b2bcbc0fcf4d63a1a96af0094a103851b0
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/tracker/db/install.sql | +1 | −0 | Go to diff View file |
A | plugins/tracker/db/mysql/updates/2019/201910071357_add_default_value_for_computed_fields.php | +44 | −0 | Go to diff View file |
M | plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_Computed.class.php | +23 | −0 | Go to diff View file |
A | plugins/tracker/tests/rest/ComputedFieldsDefaultValue/ComputedFieldsDefaultValueTest.php | +45 | −0 | Go to diff View file |
M | plugins/tracker/tests/rest/TrackerBase.php | +5 | −0 | Go to diff View file |
A | plugins/tracker/tests/rest/_fixtures/ComputedFieldsDefaultValue/project.xml | +100 | −0 | Go to diff View file |
A | plugins/tracker/tests/rest/_fixtures/ComputedFieldsDefaultValue/user_map.csv | +1 | −0 | Go to diff View file |
A | plugins/tracker/tests/rest/_fixtures/ComputedFieldsDefaultValue/users.xml | +33 | −0 | Go to diff View file |