修改作业数为10倍数时的显示BUG
This commit is contained in:
parent
8cdab80d31
commit
6a2c486f62
|
@ -475,6 +475,9 @@ class CoursesController < ApplicationController
|
|||
@bids = @bids.offset(@offset).limit(@limit).all.reverse
|
||||
else
|
||||
limit = @bid_count % @limit
|
||||
if limit == 0
|
||||
limit = 10
|
||||
end
|
||||
@bids = @bids.offset(@offset).limit(limit).all.reverse
|
||||
end
|
||||
render :layout => 'base_courses'
|
||||
|
|
Loading…
Reference in New Issue