Changes between Version 1 and Version 2 of NewCustomFieldsPatch
- Timestamp:
- 06/28/06 11:04:44 (1 year ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
NewCustomFieldsPatch
v1 v2 2 2 3 3 == Description == 4 It is useful to have fields that only accept numbers, fields that only accept an entry when the ticket is created and perhaps a field that accumulates the numbers you enter? This can be achieved with a patch to the appropriate .cs files and the addition of a little javascript. The changes can be found in the [http://projects.edgewall.com/trac/attachment/wiki/TimeTracking/CustomFieldsRev2827.patch patch file] attached. 4 5 5 Details and the patch file are buried at... 6 '''Description of new types:''' 6 7 7 http://projects.edgewall.com/trac/wiki/TimeTracking#Addingnewcustomfieldtypes 8 ''integer'' 9 10 Allows only integer values such as "12" and "-98329847" to be entered into the custom field. 11 12 ''cumulative_integer'' 13 14 Like integer but only allows the user to enter a value that is added to the current value. Useful for accumulating work done on a ticket or dollars spent. 15 16 ''set_once_integer'' 17 18 Like integer but only allows the user to set a value when the ticket is created. From then on the value is fixed. 19 20 Syntax of ini file: 21 22 <name> = <type> 23 24 Example: 25 26 {{{ 27 [ticket-custom] 28 mycustominteger = integer 29 mycustominteger_cumulative = cumulative_integer 30 mycustominteger_setonce = set_once_integer 31 }}} 32 8 33 9 34 == Bugs/Feature Requests ==