stable

Clone or download

Read-only

Default value can be imported with XML import

This is part of story #13569 define a default value for computed fields The default properties XML tag can be used in computed field to import default value. Example: <formElement type="computed" ID="F3439" rank="58843"> <name>computed</name> <label><![CDATA[Computed]]></label> <properties default_value="5.2"/> </formElement> Change-Id: Ia58c7e91e1a0124c080e6d3a97b889579b1b9522

Modified Files

Name
M plugins/tracker/include/Tracker/FormElement/dao/Tracker_FormElement_Field_ComputedDao.class.php +4 −2 Go to diff View file
M plugins/tracker/tests/rest/ComputedFieldsDefaultValue/ComputedFieldsDefaultValueTest.php +4 −0 Go to diff View file
M plugins/tracker/tests/rest/_fixtures/ComputedFieldsDefaultValue/project.xml +1 −0 Go to diff View file