Opened 9 years ago

Closed 9 years ago

# Trac.ini option to avoid "Value must be a number" warning

Reported by: Owned by: anonymous Russ Tyndall normal TimingAndEstimationPlugin normal 0.11

### Description

When trying to close a ticket with empty hour fields I get warnings which make it impossible to actually close the ticket.

• The ticket field 'Add Hours to Ticket' is invalid: Value must be a number
• The ticket field 'Estimated Number of Hours' is invalid: Value must be a number

It would be great to have a Trac.ini option which can be enabled to avoid these errors and just default the values to 0.

Using Trac 0.11.1 and timingandestimationplugin 0.7.6

### comment:1 Changed 9 years ago by Russ Tyndall

Resolution: → invalid new → closed

I was pretty sure that was how it was configured by default.

Either way, the following configuration should set the defaults to 0. I put the defaults at the top and included the rest of the configuration below for reference.

Have you changed the configuration or do you think that the installer left you with an incomplete install?

[ticket-custom]
billable.value = 1
estimatedhours.value = 0
hours.value = 0
totalhours.value = 0

billable = checkbox
billable.label = Billable?
billable.order = 3

estimatedhours = text
estimatedhours.label = Estimated Number of Hours
estimatedhours.order = 1

hours = text
hours.label = Add Hours to Ticket
hours.order = 2

totalhours = text
totalhours.label = Total Hours
totalhours.order = 4


HTH,

Russ

### Modify Ticket

Change Properties