修改代码测试列表报500
This commit is contained in:
parent
c6174406fb
commit
ff177557c8
|
@ -600,8 +600,9 @@ class AdminController < ApplicationController
|
|||
|
||||
#设置个空的数组 以便paginateHelper来分页
|
||||
@code_work_tests = []
|
||||
@code_work_tests[tCount-1] = {}
|
||||
|
||||
if tCount >= 1
|
||||
@code_work_tests[tCount-1] = {}
|
||||
end
|
||||
@code_work_tests = paginateHelper @code_work_tests,30
|
||||
@page = (params['page'] || 1).to_i - 1
|
||||
|
||||
|
|
Loading…
Reference in New Issue