diff --git a/app/controllers/tickets_controller.rb b/app/controllers/tickets_controller.rb index 90a042ca1..a125d32b7 100644 --- a/app/controllers/tickets_controller.rb +++ b/app/controllers/tickets_controller.rb @@ -58,7 +58,7 @@ class TicketsController < ApplicationController # find attachments in upload cache if form_id - @article['attachments'] = Store.list( + @article.attachments = Store.list( :object => 'UploadCache', :o_id => form_id, ) @@ -69,7 +69,7 @@ class TicketsController < ApplicationController end # remove attachments from upload cache - if params[:form_id] + if form_id Store.remove( :object => 'UploadCache', :o_id => form_id,