diff options
author | Azul <azul@leap.se> | 2014-04-22 14:39:43 +0200 |
---|---|---|
committer | Azul <azul@leap.se> | 2014-04-24 20:36:11 +0200 |
commit | c275f43147e7a8ab54623bdc5b9a8124b8592330 (patch) | |
tree | bf24395fa5c98d1fef89eda981391417d804c170 /engines/support/app/designs/ticket | |
parent | 79b14e638d14b02d9747f42984433fd7d77b0ea8 (diff) |
return nil as auto_ticket_path for invalid tickets
The auto_ticket_path is referenced from the tickets_controller like this:
respond_with(@ticket, :location => auto_ticket_path(@ticket))
While this only uses the location parameter when the ticket is valid it will still attampt to calculate it if not. During the create action this will lead to crashes because the ticket_path can not be calculated for a ticket without an id.
This led to https://leap.se/code/issues/5552 and probably
https://leap.se/code/issues/5545.
Diffstat (limited to 'engines/support/app/designs/ticket')
0 files changed, 0 insertions, 0 deletions