Modify

Opened 6 years ago

Closed 6 years ago

#4853 closed defect (invalid)

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

Reported by: anonymous Owned by: bobbysmith007
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 6 years ago by bobbysmith007

  • Resolution set to invalid
  • Status changed from new to 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

Add Comment

Modify Ticket

Action
as closed The owner will remain bobbysmith007.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.