From 811b6383f748b2998b2671d0b1f182809990136d Mon Sep 17 00:00:00 2001 From: gonglexin <18008490802@163.com> Date: Thu, 30 Oct 2014 21:11:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E6=AC=A1=E5=8A=A0=E8=BD=BD=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E6=97=B6=E7=BB=99=E5=AE=9A=E4=B8=80=E4=B8=AA=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/helpers/application_helper.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index e2fdf4739..ccc9a884c 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1894,7 +1894,9 @@ module ApplicationHelper def sort_homework_path(bid, sort, direction) case self.action_name - when 'get_not_batch_homework', 'show_courseEx' + when 'show_courseEx' + get_not_batch_homework_homework_attach_path(bid, sort: sort, direction: 'asc') + when 'get_not_batch_homework' get_not_batch_homework_homework_attach_path(bid, sort: sort, direction: direction) when 'get_batch_homeworks' get_batch_homeworks_homework_attach_path(bid, sort: sort, direction: direction)