Ticket update - component

141
Defect
arturo182
-
2.0
-
AdminCP
Fixed
Normal
Normal
7 years ago
3 years ago
0

Description

If there are no components in the project there's a bug that causes empty component changes to appear when updating tickets. It does that because empty component is '' and empty component in the db is 0 so when comparing it's different ;)

Adding (int) before $_POST['component'] in line 117 of ticket.php fixes it ;)

Attachments

Ticket History

7 years and 7 months ago by arturo182

Also when I think about it adding a "None" option with value 0 is even better idea cause in that case the select is not empty and looks better ;)

7 years and 7 months ago by Jack

  • Closed ticket as Fixed

Should be fixed.

7 years and 7 months ago by arturo182

  • Reopened ticket as Reopened

Same goes for milestones, if a project has no milestones, then every update says "Changed milestone from to "

7 years and 7 months ago by Jack

  • Closed ticket as Fixed