Changes between Version 1 and Version 2 of NewCustomFieldsPatch


Ignore:
Timestamp:
Jun 28, 2006 6:04:44 PM (8 years ago)
Author:
anonymous
Comment:

description moved from trac/timeticket

Legend:

Unmodified
Added
Removed
Modified
  • NewCustomFieldsPatch

    v1 v2  
    22 
    33== Description == 
     4It 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. 
    45 
    5 Details and the patch file are buried at... 
     6'''Description of new types:''' 
    67 
    7 http://projects.edgewall.com/trac/wiki/TimeTracking#Addingnewcustomfieldtypes 
     8''integer'' 
     9 
     10Allows only integer values such as "12" and "-98329847" to be entered into the custom field. 
     11 
     12''cumulative_integer'' 
     13 
     14Like 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 
     18Like integer but only allows the user to set a value when the ticket is created.  From then on the value is fixed. 
     19 
     20Syntax of ini file: 
     21 
     22<name> = <type> 
     23 
     24Example: 
     25 
     26{{{ 
     27[ticket-custom] 
     28mycustominteger = integer 
     29mycustominteger_cumulative = cumulative_integer 
     30mycustominteger_setonce = set_once_integer  
     31}}} 
     32 
    833 
    934== Bugs/Feature Requests ==