Next ticket id increments even the ticket has not been added

360
Defect
Jack
3.2.1
3.0
Tickets
Fixed
Normal
Normal
4 years ago
3 years ago
0

Description

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

4 years and 6 months ago by Jack

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