Modify

Opened 9 years ago

Closed 9 years ago

#4853 closed defect (invalid)

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

Reported by: anonymous Owned by: Russ Tyndall
Priority: normal Component: TimingAndEstimationPlugin
Severity: normal Keywords:
Cc: Trac Release: 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

Attachments (0)

Change History (1)

comment:1 Changed 9 years ago by Russ Tyndall

Resolution: invalid
Status: newclosed

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
Set your email in Preferences
Action
as closed The owner will remain Russ Tyndall.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.