Edgewall Software

Changes between Version 40 and Version 41 of TimeTracking


Ignore:
Timestamp:
Jun 28, 2006, 6:05:53 PM (18 years ago)
Author:
vanto
Comment:

moved custom ticket stuff to http://trac-hacks.org/wiki/NewCustomFieldsPatch

Legend:

Unmodified
Added
Removed
Modified
  • TimeTracking

    v40 v41  
    210210
    211211----
    212 
    213 == Adding new custom field types ==
    214 
    215 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.
    216 
    217 '''Description of new types:'''
    218 
    219 ''integer''
    220 
    221 Allows only integer values such as "12" and "-98329847" to be entered into the custom field.
    222 
    223 ''cumulative_integer''
    224 
    225 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.
    226 
    227 ''set_once_integer''
    228 
    229 Like integer but only allows the user to set a value when the ticket is created.  From then on the value is fixed.
    230 
    231 Syntax of ini file:
    232 
    233 <name> = <type>
    234 
    235 Example:
    236 
    237 {{{
    238 [ticket-custom]
    239 mycustominteger = integer
    240 mycustominteger_cumulative = cumulative_integer
    241 mycustominteger_setonce = set_once_integer
    242 }}}
    243 
    244 
    245212