From 78ba3abc237bde63a2eeae33d60a13bc02b0cb24 Mon Sep 17 00:00:00 2001 From: z9hang Date: Tue, 2 Dec 2014 15:34:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=95=E7=94=A8=E5=88=97=E8=A1=A8=E4=B8=BA?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E8=AF=BE=E7=A8=8B=E6=8F=90=E7=A4=BA=E6=81=A2?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/attachments_controller.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/controllers/attachments_controller.rb b/app/controllers/attachments_controller.rb index 2d0eb2b6c..111ec2cca 100644 --- a/app/controllers/attachments_controller.rb +++ b/app/controllers/attachments_controller.rb @@ -376,12 +376,12 @@ class AttachmentsController < ApplicationController respond_to do |format| format.js end - #rescue NoMethodError - # @save_flag = false - # @save_message = [] << l(:label_course_empty_select) - # respond_to do |format| - # format.js - # end + rescue NoMethodError + @save_flag = false + @save_message = [] << l(:label_course_empty_select) + respond_to do |format| + format.js + end end def update_quotes attachment