summaryrefslogtreecommitdiff
path: root/help/app/controllers
diff options
context:
space:
mode:
authorjessib <jessib@riseup.net>2012-10-29 15:08:21 -0700
committerjessib <jessib@riseup.net>2012-10-29 15:08:21 -0700
commit6eaecdd10be3974871583e1fed8c5d4e7e307bd8 (patch)
tree3600ea74a46bfabf7ec6a44b6e6c399613f7953d /help/app/controllers
parent8b9d5235faed6c15e8ef2e2dc76aec7f24d0bb50 (diff)
Just some comments
Diffstat (limited to 'help/app/controllers')
-rw-r--r--help/app/controllers/tickets_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/help/app/controllers/tickets_controller.rb b/help/app/controllers/tickets_controller.rb
index 4c7415b..d2c9643 100644
--- a/help/app/controllers/tickets_controller.rb
+++ b/help/app/controllers/tickets_controller.rb
@@ -41,6 +41,7 @@ class TicketsController < ApplicationController
@ticket = Ticket.find(params[:id])
@ticket.attributes = params[:ticket]
+ # what if there is an update and no new comment? Confirm that there is a new comment to update posted_by
@ticket.comments.last.posted_by = (current_user ? current_user.id : nil) #protecting posted_by isn't working, so this should protect it.
if @ticket.save