#360 - Next ticket id increments even the ticket has not been added
Type Defect
Status Fixed
Milestone 3.2.1
Version 3.0
Component Tickets
Priority Normal
Severity Normal
Assigned to Jack
Reported 9 years ago
Updated 8 years ago
Votes 0
Related tickets
Proposed time
Worked time

What did you do to cause this?

Steps to reproduce:

  1. Create a new ticket. Before this, note the last ticket number.
  2. Leave the summary blank.
  3. Write something in the description field, fill in everything appropriately except the summary.
  4. Submit the ticket.
  5. Note the ticket was not added, it says you have an error and the summary can't be blank.
  6. Correct the error filling in the summary.
  7. Submit the ticket again.

What page were you on?

http://path.to.traq/myproject/tickets/new

What PHP and MySQL versions do you run?

PHP version 5.3.23, MySQL version 5.5.27-cll

Describe the defect:

The $project->next_tid increments twice: one time at the first submit and other time after the correction of the error.

Possible solution: to check for errors before making the $next_tid++ and if there are any, don't increment it.

Ticket History

9 years and 2 months ago by Jack

  • Version 3.2.1 3.0
  • Component Tickets
  • Closed ticket as Fixed
  • Assigned to Jack