From b07e257ac516aeb74172119454d22a9fc8a0c705 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 19 Jun 2013 14:04:50 +0200 Subject: [PATCH] Fixed broken attachment support on ticket creation. --- app/controllers/tickets_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,