修改作业数为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
|
@bids = @bids.offset(@offset).limit(@limit).all.reverse
|
||||||
else
|
else
|
||||||
limit = @bid_count % @limit
|
limit = @bid_count % @limit
|
||||||
|
if limit == 0
|
||||||
|
limit = 10
|
||||||
|
end
|
||||||
@bids = @bids.offset(@offset).limit(limit).all.reverse
|
@bids = @bids.offset(@offset).limit(limit).all.reverse
|
||||||
end
|
end
|
||||||
render :layout => 'base_courses'
|
render :layout => 'base_courses'
|
||||||
|
|
Loading…
Reference in New Issue